Text Box Lookup

G

Gregory

Does anyone have an idea on how to open 1 form based on the contents entered into a textbox on another form.

Any help is greatly appreciated

Thanks
 
F

fredg

Gregory said:
Does anyone have an idea on how to open 1 form based on the contents
entered into a textbox on another form.

Any help is greatly appreciated.

Thanks

Do you wish to open the form at a certain record?
Check Access help on using the where clause argument of the OpenForm
method.
DoCmd.OpenForm "FormName", , ,"[IDField] = " & Me![ControlName]
 
D

Dave

You can use a button for example with code such as
docmd.openform Me.textboxname.value,
acNormal,,,acFormEdit, acWindowNormal

lookup the help for the openForm method to know what other
arguments you can use

-----Original Message-----
Does anyone have an idea on how to open 1 form based on
the contents entered into a textbox on another form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top