Hello,
1st Question : I have following codes written in access 2007 to display the items that iI select from Combo box named combo62. This works well.
But i am struct as to how to change code for displaying items .eg. to display all item begines with A,AE, B or BB ect
I tried this SQL = SQL & " where item = Like "" '" & Combo62 & "'" "*"
But donot wotk .
Please help me please.
Sub itemwise()
Dim LSQL As String
SQL = "select * from qc_logT"
SQL = SQL & " where item = '" & Combo62 & "'"
Form_ViewRecordF.RecordSource = SQL
End Sub
Private Sub Combo62_AfterUpdate()
itemwise
End Sub
2st Question : I have written following code for for displaying date of received
Sub receivedate()
Dim LSQL As Date
SQL = "select * from qc_logT"
SQL = SQL & " where item = '" & cbreceivedate & "'"
Form_ViewRecordF.RecordSource = SQL
End Sub
Private Sub cbreceivedate_AfterUpdate()
receivedate
End Sub
Here i get message as DAta mismatch
Please help me
Thaknk you all.
Sangpo
1st Question : I have following codes written in access 2007 to display the items that iI select from Combo box named combo62. This works well.
But i am struct as to how to change code for displaying items .eg. to display all item begines with A,AE, B or BB ect
I tried this SQL = SQL & " where item = Like "" '" & Combo62 & "'" "*"
But donot wotk .
Please help me please.
Sub itemwise()
Dim LSQL As String
SQL = "select * from qc_logT"
SQL = SQL & " where item = '" & Combo62 & "'"
Form_ViewRecordF.RecordSource = SQL
End Sub
Private Sub Combo62_AfterUpdate()
itemwise
End Sub
2st Question : I have written following code for for displaying date of received
Sub receivedate()
Dim LSQL As Date
SQL = "select * from qc_logT"
SQL = SQL & " where item = '" & cbreceivedate & "'"
Form_ViewRecordF.RecordSource = SQL
End Sub
Private Sub cbreceivedate_AfterUpdate()
receivedate
End Sub
Here i get message as DAta mismatch
Please help me
Thaknk you all.
Sangpo