A
AnotherNewGuy
Access 2003
I have very simple form with one ComboBox to select software titles. I just
want to see every computer with a specific piece of software installed. If
someone could explain why queries run from the form return nothing, I'd sure
appreciate it.
Query is "Software Search"
Form is "Software Search"
Combox box is "SoftwareList"
Criteria of the query is "Like [forms]![software search]![softwarelist]"
I can select from the list and run the query from a command button and get
nothing, but I can run the query outside the form and type in a name, and it
works fine.
The following is the code for the On Click event of the button:
Private Sub Command2_Click()
On Error GoTo Err_Command2_Click
Dim stDocName As String
stDocName = "Software search"
DoCmd.OpenQuery stDocName, acNormal, acReadOnly
Exit_Command2_Click:
Exit Sub
Err_Command2_Click:
MsgBox Err.Description
Resume Exit_Command2_Click
End Sub
I have very simple form with one ComboBox to select software titles. I just
want to see every computer with a specific piece of software installed. If
someone could explain why queries run from the form return nothing, I'd sure
appreciate it.
Query is "Software Search"
Form is "Software Search"
Combox box is "SoftwareList"
Criteria of the query is "Like [forms]![software search]![softwarelist]"
I can select from the list and run the query from a command button and get
nothing, but I can run the query outside the form and type in a name, and it
works fine.
The following is the code for the On Click event of the button:
Private Sub Command2_Click()
On Error GoTo Err_Command2_Click
Dim stDocName As String
stDocName = "Software search"
DoCmd.OpenQuery stDocName, acNormal, acReadOnly
Exit_Command2_Click:
Exit Sub
Err_Command2_Click:
MsgBox Err.Description
Resume Exit_Command2_Click
End Sub