Popup Form in larger font (1 Viewer)

BennyLinton

Registered User.
Local time
Today, 13:15
Joined
Feb 21, 2014
Messages
263
I need to have the ability to have the user click on a notes field/textbox and have that launch another form that has the information in a quite larger font and it be sync'd to the Notes Textbox I have so they can see it better and have their edits immediately seen on the main screen... is this possible?
 

theDBguy

I’m here to help
Staff member
Local time
Today, 13:15
Joined
Oct 29, 2018
Messages
21,496
Of course. For example, you could create a smaller form bound to the same table as your form now and only include the Notes field on it. Make the font size as big as you'd like and when you're ready to open it, you could try something like:
Code:
DoCmd.OpenForm "FormName", , , "ID=" & Me.ID
You'll probably need more code than that, but give it a shot for now.
 

BennyLinton

Registered User.
Local time
Today, 13:15
Joined
Feb 21, 2014
Messages
263
That works so far.. .I just need to write some code to refresh the main form... thanks
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 16:15
Joined
May 21, 2018
Messages
8,555
have their edits immediately seen on the main screen...

Adding to what DBGuy said. You probably want to open the pop up as Acdialog. This will stop code execution in the calling form. When the pop up closes it will return code execution to the calling form. Then you will need to requery to see your changes

Something like
Code:
dim tempID as long
tempID = me.ID
DoCmd.OpenForm "FormName", , , "ID=" & Me.ID,,ACDIALOG
'code stopped until called form closes
me.requery 'refresh the changes
me.recordset.findfirst "ID = " & TempID
 

theDBguy

I’m here to help
Staff member
Local time
Today, 13:15
Joined
Oct 29, 2018
Messages
21,496
Last bit of code works perfectly... thanks!!
Congratulations! Glad to hear you got it working. Good luck with your project.


MajP, thanks for the assist!
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 16:15
Joined
May 21, 2018
Messages
8,555
FYI. I would likely do this customized approach; however, Access does have a zoombox built in. You could call this from any textbox on a double click event for example.
Code:
Public Function openZoomBox()
  DoCmd.RunCommand acCmdZoomBox
End Function
 

Users who are viewing this thread

Top Bottom