Related data, please help!

S

Suzi

Hi, I am trying to get my access form to, for example, if
I enter a job number of DSXXX in one field, to
automatically know that that job number relates only to
the Bournemouth store and to enter BOURNEMOUTH in another
field. How do I do this?!
 
I

Ivar Svendsen

Hello.

Set the ControlSource property of the second field to
something like:

=DLookup("STORE"; "STORETABLE"; "JOBID='" & m_JOBID & "'")

"STORETABLE" is the name of the table from which to get
the information.

"STORE" is the name of the field containing the store name.

JOBID is the name of the field containing job number.

("STORE" and JOBID will be fields in the table STORETABLE).

m_JOBID is the name of the unbound form field where you
enter the job number to search for.



Regards,
Ivar Svendsen
 

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