N
nws
How do I programatically cause another form to load?
Is the code something like this...?
Form.Load ("Form2")
Is the code something like this...?
Form.Load ("Form2")
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Michael H said:Try this:
docmd.OpenForm "Form2", acNormal
For more info, search Access Visual Basic Help on "OpenForm".
-Michael
)Joey Archer said:Try this...
docmd.openform "form2", acnormal, , "ID = 5"
For the "ID = 5" you can enter your own value for each time, or you can
use
a field on an open form. For example, if you had a form with a field
intID
and you wanted it to be used as the ID in the new form try....
docmd.openform "form2", acnormal, , "ID = " & [intID]
Let me know if this doesn't make sense.
Joey Archer
MVP wantabee)
nws said:Thanks that helped.
How how do I cause that same form to only show the record
of a certain ID?
For example, sometimes I would want it to open with
record ID=3 and sometimes with record ID=5
and others?
nws said:Is there a way to do something like this....?
docmd.openform "form2", acnormal, , ID = CurrentRecord
Joey Archer said:Try this...
docmd.openform "form2", acnormal, , "ID = 5"
For the "ID = 5" you can enter your own value for each time, or you can
use
a field on an open form. For example, if you had a form with a field
intID
and you wanted it to be used as the ID in the new form try....
docmd.openform "form2", acnormal, , "ID = " & [intID]
Let me know if this doesn't make sense.
Joey Archer
MVP wantabee)
nws said:Thanks that helped.
How how do I cause that same form to only show the record
of a certain ID?
For example, sometimes I would want it to open with
record ID=3 and sometimes with record ID=5
and others?
Try this:
docmd.OpenForm "Form2", acNormal
For more info, search Access Visual Basic Help on "OpenForm".
-Michael
:
How do I programatically cause another form to load?
Is the code something like this...?
Form.Load ("Form2")
nws said:Is there a way to do something like this....?
docmd.openform "form2", acnormal, , ID = CurrentRecord
Joey Archer said:Try this...
docmd.openform "form2", acnormal, , "ID = 5"
For the "ID = 5" you can enter your own value for each time, or you can
use
a field on an open form. For example, if you had a form with a field
intID
and you wanted it to be used as the ID in the new form try....
docmd.openform "form2", acnormal, , "ID = " & [intID]
Let me know if this doesn't make sense.
Joey Archer
MVP wantabee)
nws said:Thanks that helped.
How how do I cause that same form to only show the record
of a certain ID?
For example, sometimes I would want it to open with
record ID=3 and sometimes with record ID=5
and others?
Try this:
docmd.OpenForm "Form2", acNormal
For more info, search Access Visual Basic Help on "OpenForm".
-Michael
:
How do I programatically cause another form to load?
Is the code something like this...?
Form.Load ("Form2")
nws said:Is there a way to do something like this....?
docmd.openform "form2", acnormal, , ID = CurrentRecord
Joey Archer said:Try this...
docmd.openform "form2", acnormal, , "ID = 5"
For the "ID = 5" you can enter your own value for each time, or you can
use
a field on an open form. For example, if you had a form with a field
intID
and you wanted it to be used as the ID in the new form try....
docmd.openform "form2", acnormal, , "ID = " & [intID]
Let me know if this doesn't make sense.
Joey Archer
MVP wantabee)
nws said:Thanks that helped.
How how do I cause that same form to only show the record
of a certain ID?
For example, sometimes I would want it to open with
record ID=3 and sometimes with record ID=5
and others?
Try this:
docmd.OpenForm "Form2", acNormal
For more info, search Access Visual Basic Help on "OpenForm".
-Michael
:
How do I programatically cause another form to load?
Is the code something like this...?
Form.Load ("Form2")
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.