L
LLazuta
I am fairly new to Vba and have been trying to implement a Select
statement with 2 criterias but i keep getting the same error No value
given for one or more ewuired parameters. Any Help will be much
appreciated. This is my code as follows:
Dim myConnection As ADODB.Connection
Set myConnection = CurrentProject.Connection
Dim RS As New ADODB.Recordset
RS.ActiveConnection = myConnection
RS.Open "SELECT * FROM Attendance WHERE RS!ID = '" &
Form_Attendance.CmbID.Value & "' AND RS!DATE = '" &
Form_Attendance.TxtDate.Value & "'", , adOpenDynamic, adLockOptimistic
statement with 2 criterias but i keep getting the same error No value
given for one or more ewuired parameters. Any Help will be much
appreciated. This is my code as follows:
Dim myConnection As ADODB.Connection
Set myConnection = CurrentProject.Connection
Dim RS As New ADODB.Recordset
RS.ActiveConnection = myConnection
RS.Open "SELECT * FROM Attendance WHERE RS!ID = '" &
Form_Attendance.CmbID.Value & "' AND RS!DATE = '" &
Form_Attendance.TxtDate.Value & "'", , adOpenDynamic, adLockOptimistic