J
JDP
In a form I created a control button to open a second form.
Works fine.
I would like the form to open the second form for the
current record WITHOUT having to enter the record number
into the popup window.
Currently I must either copy, and paste the record number
into the popup window, or I must retype the record
number.
This is what was generated from the wizard to create the
buton:
stLinkCriteria = "[Invoice_No]=" & "'" & Me![Import
Invoice data.Invoice_No] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
It looks like it is storing the Invoice_No into a string,
and should be calling the string?
Is there a way in the event procedure to tell the button
to open the current active record?
Once I open the second form from the button,I created a
button that toggles me back to the first form, and when I
press the button to go to back to the first form it
retains this in memory, and opens the first form.
Further once I have entered the number, and gone to the
second form, I can toggle between the forms using the
buttons.
Any help would be greatly appreciated.
Works fine.
I would like the form to open the second form for the
current record WITHOUT having to enter the record number
into the popup window.
Currently I must either copy, and paste the record number
into the popup window, or I must retype the record
number.
This is what was generated from the wizard to create the
buton:
stLinkCriteria = "[Invoice_No]=" & "'" & Me![Import
Invoice data.Invoice_No] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
It looks like it is storing the Invoice_No into a string,
and should be calling the string?
Is there a way in the event procedure to tell the button
to open the current active record?
Once I open the second form from the button,I created a
button that toggles me back to the first form, and when I
press the button to go to back to the first form it
retains this in memory, and opens the first form.
Further once I have entered the number, and gone to the
second form, I can toggle between the forms using the
buttons.
Any help would be greatly appreciated.