Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Type Mismatch ?????
Message
From
27/08/2001 11:06:55
 
 
To
All
General information
Forum:
Microsoft Office
Category:
Access
Title:
Data Type Mismatch ?????
Miscellaneous
Thread ID:
00549451
Message ID:
00549451
Views:
47
The following line in the code below generates a Data Type Mismatch Error any ideas why? I took the code straight out of a MSAccess book.

Set R = CurrentDb.OpenRecordset(SQLText)
Private Sub Command32_Click()
    
cDim R As Recordset, SQLText
SQLText = "Select * From Product Where Catalog = 'CAT3'"
Set R = CurrentDb.OpenRecordset(SQLText)
If R.RecordCount Then

    MsgBox "Record exists"
Else
    MsgBox "Record not found"
End If

End Sub
Here's to alcohol...the cause of ... and solution to ... all of life's problems - - Homer J. Simpson
Next
Reply
Map
View

Click here to load this message in the networking platform