Open A Record from a ListBox in Another Form

  • Thread starter malik via AccessMonster.com
  • Start date
M

malik via AccessMonster.com

Hi
I have a form name FrmDrVoucher. In this form i have a Button Name BtnOpen.
by pressing this a new form opens with a listBox which have all the
DrVouchers save by this form.
Now plz tell me that how can I open a record in th form DrVoucher by Dbl
Click.


Thank you
 
T

theDBguy

Hi,

Does the listbox include the primary key. If so, in the DoubleClk event, you
could try something like:

DoCmd.OpenForm "FormName", , , "[PrimaryKeyFieldName]=" & Me.ListboxName

The above assumes that the Bound Column is the primary key.

Hope that helps...
 

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