Link to new form in Access 2003

bladeuk

Board Regular
Joined
Apr 6, 2005
Messages
178
Hi,

I have a command button on an input form that when clicked goes to a new form.

Problem is, it goes to the 1st record in the database as opposed to the ID number of the form I am currently in.

I want to click on this button and then the next form display the details for the ID on my initial input form. This second form is to complete a couple of new fields with instructions and be printed out.

I'm not too hot on expression builder and code, so the simpler the answer the better if possible.

I've tried to use the 'Where Condition' filed in my macro and followed waht I think is the correct route but it will still not work.

[Forms]![frmInputForm]![ID No]


Any advice/help gratefully appreciated.

Dave
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Dave

How did you create the button?

The wizard should guide you through opening another form based on criteria of the current form.

In code the Where argument usually looks something like this, where ItemID is the common field and the name of it's control on the form.
Code:
"ItemID="& Me!ItemID
 
Upvote 0
Thanks - You're right of course...If I had used the wizard properly - it would have done EXACTLY what I wanted.

many thanks

Dave
 
Upvote 0

Forum statistics

Threads
1,224,534
Messages
6,179,391
Members
452,909
Latest member
VickiS

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top