N
Newbee
Hi,
I have command button on form with event on click.
I have two combo boxes on form and I would like to pass value of both combo
boxes to two fileds on form which is opening.
I was trying like this, but is not working.
Private Sub cmdOpenForm_Click()
On Error GoTo Err_cmdOpenForm_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmNew"
stLinkCriteria = "[Field1ID]=" & "#" & Me![cbo1] & "#" And "[Field2ID]="
& Me![cbo2]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdOpenForm_Click:
Exit Sub
Help this newbee![Smile :) :)](/styles/default/custom/smilies/smile.gif)
Your help is greatly appreciated...
I have command button on form with event on click.
I have two combo boxes on form and I would like to pass value of both combo
boxes to two fileds on form which is opening.
I was trying like this, but is not working.
Private Sub cmdOpenForm_Click()
On Error GoTo Err_cmdOpenForm_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmNew"
stLinkCriteria = "[Field1ID]=" & "#" & Me![cbo1] & "#" And "[Field2ID]="
& Me![cbo2]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdOpenForm_Click:
Exit Sub
Help this newbee
![Smile :) :)](/styles/default/custom/smilies/smile.gif)
Your help is greatly appreciated...