P
Pete Davis
I have a button on one form at opens another form. I used the wizard and
access created the following code:
Private Sub EditPictures_Click()
On Error GoTo Err_EditPictures_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Picture"
stLinkCriteria = "[PropertyDetailsID]=" & Me![PropertyDetailsID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_EditPictures_Click:
Exit Sub
Err_EditPictures_Click:
MsgBox Err.Description
Resume Exit_EditPictures_Click
End Sub
From the pictures form, in the Form_Load event, I need to get the
PropertyDetailsID and place it in a field. How do I do this?
The Picture form has a PropertyDetailsID field which I assumed would be
auto-populated, but that's not the case.
Thanks, in advance, and really, thanks to everyone who has helped so far.
The people on the Access newsgroups are a terrific help.
Pete
access created the following code:
Private Sub EditPictures_Click()
On Error GoTo Err_EditPictures_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Picture"
stLinkCriteria = "[PropertyDetailsID]=" & Me![PropertyDetailsID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_EditPictures_Click:
Exit Sub
Err_EditPictures_Click:
MsgBox Err.Description
Resume Exit_EditPictures_Click
End Sub
From the pictures form, in the Form_Load event, I need to get the
PropertyDetailsID and place it in a field. How do I do this?
The Picture form has a PropertyDetailsID field which I assumed would be
auto-populated, but that's not the case.
Thanks, in advance, and really, thanks to everyone who has helped so far.
The people on the Access newsgroups are a terrific help.
Pete