G
Guest
I have the following code in my Access 2000 application. The EntrantID and
CompID fields form a joint primary key in the EntrySummary table (and fields
in my form share the same names).
Dim MyDB As DAO.Database
Dim rstEntrySummary As DAO.Recordset
Set MyDB = DBEngine.Workspaces(0).Databases(0)
Set rstEntrySummary = MyDB.OpenRecordset("EntrySummary")
rstEntrySummary.Index = "PrimaryKey"
rstEntrySummary.Seek "=", Me![EntrantID], Me![CompID]
etc, etc
This code worked fine when my EntrantID and CompID fields were both numeric.
However I have just changed the EntrantID to a text field and the Seek
statement now triggers a Data Type Conversion Error.
To add to my problems, the Visual Basic Help system on my PC seems to be
corrupted in some fashion and refuses to list any info on the Seek Method.
Any suggestions?
CompID fields form a joint primary key in the EntrySummary table (and fields
in my form share the same names).
Dim MyDB As DAO.Database
Dim rstEntrySummary As DAO.Recordset
Set MyDB = DBEngine.Workspaces(0).Databases(0)
Set rstEntrySummary = MyDB.OpenRecordset("EntrySummary")
rstEntrySummary.Index = "PrimaryKey"
rstEntrySummary.Seek "=", Me![EntrantID], Me![CompID]
etc, etc
This code worked fine when my EntrantID and CompID fields were both numeric.
However I have just changed the EntrantID to a text field and the Seek
statement now triggers a Data Type Conversion Error.
To add to my problems, the Visual Basic Help system on my PC seems to be
corrupted in some fashion and refuses to list any info on the Seek Method.
Any suggestions?