N
Nova
This is my code in btnSearch_click event
Dim Cnx As ADODB.Connection
Dim Rst As ADODB.Recordset
Dim StrRst As String
Dim N As Integer
StrRst = "SELECT * FROM MatStock WHERE
([ActionDate]=Forms!MatTurnoverF.StartDate);"
Set Cnx = CurrentProject.Connection
Set Rst = New ADODB.Recordset
Rst.Open StrRst, Cnx, adOpenForwardOnly, adLockReadOnly, 1
It show message
No value given for one or morerequired parameter
If I copy Strrst to create query, it work correct. I don't understand where
am I wrong?
Dim Cnx As ADODB.Connection
Dim Rst As ADODB.Recordset
Dim StrRst As String
Dim N As Integer
StrRst = "SELECT * FROM MatStock WHERE
([ActionDate]=Forms!MatTurnoverF.StartDate);"
Set Cnx = CurrentProject.Connection
Set Rst = New ADODB.Recordset
Rst.Open StrRst, Cnx, adOpenForwardOnly, adLockReadOnly, 1
It show message
No value given for one or morerequired parameter
If I copy Strrst to create query, it work correct. I don't understand where
am I wrong?