Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RecordSource
Message
 
To
12/07/2000 21:28:17
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Miscellaneous
Thread ID:
00391614
Message ID:
00392131
Views:
10
>Is there something wrong in my codes below?, it does not work.. please help .. and thanks
>
>
>Private Sub Form_Load()
>Dim mSetupDir as String
>
>mSetupDir = App.Path & "\Setup.MDB"
>'
>adoDep.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & mSetupDir & ";Persist Security Info=False"
>'
>adoDep.RecordSource = "Select * from Department Where Department.Dept like 'A*' order by Department.Dept"
>
>End Sub

In addition to what Cuyt said, in ADO, the wildcard is % instead of *.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform