Jet Database Error

guamlet

Board Regular
Joined
Dec 29, 2002
Messages
145
I get the following error when running a FindNext command in VBA

"The Microsoft Jet Datase Engine Does not Recognize 'F010c' as a valid field name or expression".

I've run FindFirst on other tables, but I was looking for an indexed key number. This time I'm looking for a string that occurs in several different records in a given table. Is there a problem with looking for the string? Do I need some sort of converter command?

Thanks
Guamlet
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Can you post the code that you are using? By the error msg it is trying to look in a field called F010c

peter
 
Upvote 0
Sure..

strSQL2 = "Select * from [Frozen]"
' Set rst2 = db.OpenRecordset(strSQL2)
' rst2.MoveLast
' Number = rst2.RecordCount
' rst2.MoveFirst
For j = 1 To Number
' rst2.Edit
' If lstFrozenName.Selected(j) = True Then
' rst2.FindNext "[Frozen Name]=" & lstFrozenName.Column(0, j)
' If dtDate <> "" Then
' rst2![Thaw Date] = dtDate
' Else
' rst2![Thaw Date] = Date
' End If
' End If
' rst2.Update
' Next j

The name of the table is Frozen, and the name of the field where FP010c is found is called "Frozen Name". FP010c is an entry in that field.

Thanks

Guamlet
 
Upvote 0
I think that you should be using FindFirst still. You are only searching once on each record, FindNext is used without a qualifier to repeat the same search again.

HTH

Peter
 
Upvote 0

Forum statistics

Threads
1,221,575
Messages
6,160,603
Members
451,657
Latest member
Ang24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top