Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

No value given for one or more required parameters

$
0
0
Hi

On rs.open it gives me above error

dim rs as adodb.recordset
dim str as string

Set rs = New ADODB.Recordset
str = "select transactionno,vehicleid,grossshiftdate,custname,prcname from transact where grossshiftdate=#" & CDate(Format(DTPicker1.Value, "mm/dd/yyyy")) & "# and transact.custid=customer.custid and transact.prcode=product.prcode and transact.trcode=transporter.trcode union select transactionno,vehicleid,prname, custname,grossshiftdate from transact,customer,product,users where tareshiftdate=#" & CDate(Format(DTPicker1.Value, "mm/dd/yyyy")) & "# and transact.custid=customer.custid and transact.prcode=product.prcode"
If rs.State = 1 Then rs.Close
rs.Open str, cnn1, adOpenDynamic, adLockOptimistic, adCmdText

Thanks

Viewing all articles
Browse latest Browse all 21090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>