benkingery
Registered User.
- Local time
- Today, 15:42
- Joined
- Jul 15, 2008
- Messages
- 153
I can't believe how easy this is but I'm still having issues. My original database was corrupted prompting me to need to do this again and i can't find the original source I used to solve this problem.
I have a form (Main_Inventory) that has a button on it with an event procedure behind it. The event procedure opens another form (frm_Transfers_OS) and fills in the field [Item] from the value it pulled from the current form data in Main_Inventory, field [OS_Child]. Here's the code I have so far:
Private Sub Label78_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stlinkcriteria As String
stDocName = "frm_Transfers_OS"
stlinkcriteria = "[Item]=" & "'" & Me![OS_Child] & "'"
DoCmd.OpenForm stDocName, , , stlinkcriteria
The code is not working, needless to say and I can't figure out why. Can anyone help?
I have a form (Main_Inventory) that has a button on it with an event procedure behind it. The event procedure opens another form (frm_Transfers_OS) and fills in the field [Item] from the value it pulled from the current form data in Main_Inventory, field [OS_Child]. Here's the code I have so far:
Private Sub Label78_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stlinkcriteria As String
stDocName = "frm_Transfers_OS"
stlinkcriteria = "[Item]=" & "'" & Me![OS_Child] & "'"
DoCmd.OpenForm stDocName, , , stlinkcriteria
The code is not working, needless to say and I can't figure out why. Can anyone help?