Pulling Data from tables to prefill sections of a form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Help!! I want to set up a form that will require some Data to be entered and
the other parts to auto fill in when the record number is entered.

For example:

To access the Form you enter the id# and when the form opens the persons
name, program, and some other data is in the related fields and then there is
other fields that will need to be completed such as the case manager, date,
and status.

Any Suggestions???
 
myztiques said:
Help!! I want to set up a form that will require some Data to be entered
and
the other parts to auto fill in when the record number is entered.

For example:

To access the Form you enter the id# and when the form opens the persons
name, program, and some other data is in the related fields and then there
is
other fields that will need to be completed such as the case manager,
date,
and status.

Any Suggestions???

Assumptions: the form is bound to the table/query that contains the fields
you are interested in, and you are opening the form with the DoCmd.OpenForm
method. If these assumptions are true, try this:

DoCmd.OpenForm "form name",,,"[ID]=" & myIDvalue

[ID] should be the name of the id# field in the table/query, and myIDvalue
should be the name of the control into which the id# is entered.

Carl Rapson
 

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

Similar Threads


Back
Top