yepwingtim
Registered User.
- Local time
- Today, 13:00
- Joined
- Jun 6, 2008
- Messages
- 126
I have a form that is only a screenshot.
I want to have a form button where once you click on it,
we add a new record in that matches the ID to ID,
and puts in the ID for you here what I have so far.
Private Sub Command22_Click()
On Error GoTo Err_Command22_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "history Query"
stLinkCriteria = "[ID]=" & Me![ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command22_Click:
Exit Sub
Err_Command22_Click:
MsgBox Err.Description
Resume Exit_Command22_Click
End Sub
________
BUY DIGITAL SCALE
I want to have a form button where once you click on it,
we add a new record in that matches the ID to ID,
and puts in the ID for you here what I have so far.
Private Sub Command22_Click()
On Error GoTo Err_Command22_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "history Query"
stLinkCriteria = "[ID]=" & Me![ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command22_Click:
Exit Sub
Err_Command22_Click:
MsgBox Err.Description
Resume Exit_Command22_Click
End Sub
________
BUY DIGITAL SCALE
Last edited: