Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
VB6 using DAO

VB6 using DAO

2006-03-24       - By Jon Riesenweber

 Back
Reply:     1     2     3  

Hello,



I?m a newbie to this compiled code world so go easy on me. I am trying to
convert an app to MySQL from exchange using DAO. I know that ADO is far better
for this situation, however I have to do it with DAO before they will let me
convert the entire thing over to ADO. I have done most of the converting but I
am stuck on the SEEK method. I am trying to replace the Seek method with
findFirst but the logic is screwing me up right now. Here?s the call I am
trying to replace. CurDataTbl.Seek "=", DispCtl("UnitCtlNo"), DispCtl(
"DataFieldNo" and SensorTbl.Seek "=", DispCtl("Sensor"). Here is what all of
that is defined as.



For the first:

Set CurDataTbl = DB.OpenRecordset("CurData", dbOpenDynaset)   'CurDataTbl =
Table for detail data (Data table)

Set DispCtl = DB.OpenRecordset("SELECT * FROM DisplayCtl WHERE UnitCtlNo =  " &
UnitCtlfld & " And (AveragedField = True Or TotaledField = True  Or
CurrentIsHistory = True Or DataEntryField = True)", dbOpenDynaset)



And for the second call:

Set SensorTbl = DB.OpenRecordset("Sensor", dbOpenDynaset) 'SensorTbl = Table
for Sensor data (Sensor table)

Set DispCtl = DB.OpenRecordset("SELECT * FROM DisplayCtl WHERE UnitCtlNo =  " &
UnitCtlfld & " And (AveragedField = True Or TotaledField = True  Or
CurrentIsHistory = True Or DataEntryField = True)", dbOpenDynaset)



PLEASE HELP!!!



Thanks!



Jon


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.1/291 - Release Date: 3/24/2006