Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select statement
Message
From
11/07/2001 21:52:40
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
 
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00529527
Message ID:
00529534
Views:
8
>>What wrong with this code.
>>
>>Dim IntRetrieve As Integer
>>frmChkBk.adochkBk.commandType = adcmdText
>>intRetrieve = val(InputBox("What check # do you want to retrieve?", "Retrieve"))
>>frmChkBk.adoChkBk.RecordSource = _
>>"select * from tblchecks where fldnum = intRetrieve"
>>frmChkBk.adoChkBk.refresh
>>frmChkbk.adochkBk.commandType = adCmdTable
>>
>>error message: No value given for one or more required parameters
>>
>>I through up a msgbox with intRetrieve has the value I key in form mu input box.
>>My fldNum is an Integer data type
>
>Your query should probably be better using this:
>
frmChkBk.adoChkBk.RecordSource = _
>"select * from tblchecks where fldnum = " & intRetrieve
Thanks that will do it..
Foxpro is a sweet puppy

'cept it barks every now and then =)
Previous
Reply
Map
View

Click here to load this message in the networking platform