
At wits end - File not found: VBA6.DLL
I' stuck. I am new to Access - the last coding I did was for dBase III+.
This is not as easy.
I have a comma delimited database I have imported into Acces 97. One field
in the old database has up to 18 letters in it in any order. I want to read
the field and if a certain letter exists, set a new boolen field true.
For example, the field MEMOLDCODE might be "FCWAVO". I want to set
ActiveVolunter true if the V is anywere in the field.
I am having tropuble getting started. I can get it going to display results
in a Debug window but as soon as I try to get fancy and get it testing the
field for the V, I get "File not found: VBA6.DLL" when I try to do a run or
compile.
______________
Option Compare Database
Option Explicit
Public Sub LoopRecordset()
Dim db As Database, rst As Recordset
Set db = DBEngine(0)(0)
Set rst = db.OpenRecordset("MembersPrimaryInfo", dbOpenTable)
Dim lenoldcode As Integer, i As Integer, j As Integer
Do Until rst.EOF
lenoldcode = Len(rst![MEMOLDCODE])
Debug.Print rst![LastName] & " " & rst![MEMOLDCODE] & " " &
lenoldcode
rst.MoveNext
Loop
End Sub
This code did work and print in the dbug windows all the records. As soon
as I added code to get the length of the old field, and then walk through
the field to test for the V I start getting the "field not found: vba6.dll"
message and it will not go away even after I remark each new line, the
nothing works.
This is not fun! Any ideas?
Thanks,
Kirk Ransom
Minnetonka, MN
_______________