|
-
Aug 12th, 2002, 09:14 PM
#1
Thread Starter
Junior Member
Passing variables
I am passing a variable from one one to the another e.g.
Public Sub mysub(ByVal number As Integer)
cmdsupport = dbconn.CreateCommand
cmdsupport.CommandText = "select * from supportcall where ID = '" & number & "'"
dbsupport.Fill(dssupport, "SupportCall")
However when the program fills the dataset, it crashes warning me that "Additional information: Argument 'Prompt' cannot be converted to type 'String'"
Do I need to convert the number variable somewhere?
It is an Access db connection
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|