Set form field on double click

D

DavisGail

I am using MS Access 2003.

I have a continuous form that is run off of a query "srbScientific Review".
The query's criteria is set to [Enter Last Name] in the LastName field. That
part works fine. I get my continuous form that shows LastName, DocID, and
Title of Document.

I would like to double click on the DocID and have the following happen:
1. Open another form "publications"
2. Set the SRBId field to the DocId field that I double clicked on.

PLEASE help. I think I need to bookmark, clone.... I'm very confused.
 
D

Duane Hookom

As a kick in the right direction, try update the code of the Double Click
event to:
MsgBox "You clicked the record with DocID: " & Me.DocID
This should show the correct number. You can use this number when opening
the new form either in the WHERE CONDITION or the OPENARGS depending on how
you want to use the DocID.
 
D

De Jager

DavisGail said:
I am using MS Access 2003.

I have a continuous form that is run off of a query "srbScientific
Review".
The query's criteria is set to [Enter Last Name] in the LastName field.
That
part works fine. I get my continuous form that shows LastName, DocID, and
Title of Document.

I would like to double click on the DocID and have the following happen:
1. Open another form "publications"
2. Set the SRBId field to the DocId field that I double clicked on.

PLEASE help. I think I need to bookmark, clone.... I'm very confused.
 

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


Top