×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I need to create a very tiny, very quick VB 6 program to run an experiment
on data access.
I haven't had to write any VB6 ADO stuff for several years so I'm quite
rusty here.
I found a small code sample on the web that will work fine for all I want to
do, but I'm having trouble getting the SELECT to be syntactically correct.
Not sure why.
Can a VB person take a quick peek at this and tell me why the WHERE clause
would be throwing errors?
txtFieldType is defined as maxlength 2 (char). The field in the AS/400
database is also 2 characters.
If I do not use a WHERE clause, it works fine. With a WHERE clause, it
craps out.
Thanks!
Shannon O'Donnell
Private Sub cmdLoadIseries_Click()
' This requries that there be a DSN setup on the user's box. Make this a
system DSN
' called "MYAS400"
' and on the "Packages(S)" tab, un-check the "Enable extended Dynamic
support"
Dim objConn As New ADODB.Connection, objRs As New ADODB.Recordset
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.