Bring up value to another form

L

Lili

Hi,

If I just add a customer in a new customer form and I
have a button to go to sales form, when I cick it, is
there any way so that the sales form can show that
particular person ID/name?

Thank you.
 
N

Neil

Im assumming you have a macro sitting behind this
button. You want to edit the macro and use the
WhereCondition function. Where you have the openform part
of the macro, enter the WhereCondition in the properties
for it. Use something similar to the code below.

[Customer Name]=[Forms]![Customer Details]![Customer Name]

The left side is for the form being openned and the right
side is for the form you are navigating from.
 
M

Microsoft

Greetings,

I am also trying to get one form to bring up a record in another form. I
have a filtered form that lists all the records in the database by last name
by alphabet. I want to click a record to have it display a specific record
on a form in which I enter and edit data. I have put your snip or code in
the macro changing it to match my form and field names and it returns an
empty record. The macro uses the OpenForm action but I cannot find a way to
get to the spcific record.

Any thoughts on what I have missed or done wrong?

Many thanks.

Best regards,
Scott

Neil said:
Im assumming you have a macro sitting behind this
button. You want to edit the macro and use the
WhereCondition function. Where you have the openform part
of the macro, enter the WhereCondition in the properties
for it. Use something similar to the code below.

[Customer Name]=[Forms]![Customer Details]![Customer Name]

The left side is for the form being openned and the right
side is for the form you are navigating from.
-----Original Message-----
Hi,

If I just add a customer in a new customer form and I
have a button to go to sales form, when I cick it, is
there any way so that the sales form can show that
particular person ID/name?

Thank you.
.
 
L

Lili

try to create the open form command button
in my case, the specific rrecord does not show because I
am trying to bring up a sale that the customer doesn't
have.
 

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

Crating User Form to Add Names 1
Show Ink Excel 0
M.S. Word 365 1
Copy previous record into form field 0
Subforms 1
Setting a default zoom in Infopath 0
Creating Top 10 in linked subform 1
Form with Subform 1

Top