Jump to record

smeco

Board Regular
Joined
Jan 23, 2004
Messages
51
I have a form with a list of all payments
I'd like to make it so that, by double-clicking on the 'amount' box, I get taken to a form which prints the detail of that specific payment

I've created a macro that opens the specific form, but how do I make it jump to the record from which I double-clicked?

I hope that was clear, thanks in advance
smeco
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
If you want to open Form2, synchronised with the ID on Form1, here's what you do:

Design view on Form 1, drag a Command Button onto the form -- with Wizards ON. When the wizard launches, select Open Form from the options. Select Form2 when prompted. You'll also be asked if you want to display a specific record. Match up the IDs on both forms, give the button a cpation, and you're done.

If you don't want to keep the button, you can go to its code, copy the lines with stDocname and DoCmd, and paste them into the Double Click event of the Totals control.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,814
Messages
6,162,135
Members
451,743
Latest member
matt3388

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