G
Guest
Hello, I am trying to open a next form and pass the autCUST_NO and intROOM_NO to the new form. However, with the following code I get a data mismatch. Any idea what I am doing wrong
Private Sub Command2_Click(
On Error GoTo Err_Command2_Clic
Dim stDocName As Strin
Dim stLinkCriteria As Strin
Dim stLinkCriteria1 As Strin
Dim stLinkCriteria2 As Strin
stDocName = "frmWINDOWS
stLinkCriteria1 = "[autCUST_NO]=" & "'" & Me![autCUST_NO] & "'
stLinkCriteria2 = "[intROOM_NO]=" & "'" & Me![txtROOM_NO] & "'
stLinkCriteria = stLinkCriteria1 And stLinkCriteria
DoCmd.OpenForm stDocName, , , stLinkCriteri
Exit_Command2_Click
Exit Su
Err_Command2_Click
MsgBox Err.Descriptio
Resume Exit_Command2_Clic
Thanks
Private Sub Command2_Click(
On Error GoTo Err_Command2_Clic
Dim stDocName As Strin
Dim stLinkCriteria As Strin
Dim stLinkCriteria1 As Strin
Dim stLinkCriteria2 As Strin
stDocName = "frmWINDOWS
stLinkCriteria1 = "[autCUST_NO]=" & "'" & Me![autCUST_NO] & "'
stLinkCriteria2 = "[intROOM_NO]=" & "'" & Me![txtROOM_NO] & "'
stLinkCriteria = stLinkCriteria1 And stLinkCriteria
DoCmd.OpenForm stDocName, , , stLinkCriteri
Exit_Command2_Click
Exit Su
Err_Command2_Click
MsgBox Err.Descriptio
Resume Exit_Command2_Clic
Thanks