BFreshour
Programmer
- Mar 20, 2002
- 84
I'm trying to convert an Access 97 database over to Access 2002. It keeps hanging in a module at the following section with "Can't find project or library" error.
I believe the format being used to access the table data is incorrect but I can't figure out what I need to do to fix it.
Here's the code:
It stops at the 'Trim' function (highlighting Trim). The MainCaption text-based field does exist in the DirLocations table.
Thanks for any help.
I believe the format being used to access the table data is incorrect but I can't figure out what I need to do to fix it.
Here's the code:
Code:
Public Sub updateMainCaption()
Dim cdb As Database
Dim crs As Recordset
Dim addC As String
Set cdb = CurrentDb
Set crs = cdb.OpenRecordset("DirLocations")
crs.MoveLast
crs.MoveFirst
addC = Trim(crs![MainCaption]) & ""
It stops at the 'Trim' function (highlighting Trim). The MainCaption text-based field does exist in the DirLocations table.
Thanks for any help.