JGravesNBS
Registered User.
- Local time
- Yesterday, 16:45
- Joined
- Apr 5, 2014
- Messages
- 58
Run-time error 3251 - Operation is not supported for this type of Object rs.Index = "
I have a working Access 2010 IUOE.mdb that contains table, queries, forms, reports, etc
I split the database into IUOE_Fe.mdb (queries, forms, reports, etc) and IUOE_Be.mdb (tables)
I have a form that is giving me the following error on a field On Lost Focus event
Set rs = db.OpenRecordset("CodeWDOEpct") ', dbOpenSnapshot, dbForwardOnly)
'Run-time error 3251 - Operation is not supported for this type of Object
rs.Index = "id"
How can I get the code working?
CodeWDOEpct (table) looks as follows:
id is an AutoNumber, Primary Key, No Index
id Agreement WDOE OT DT TT
1 Maintenance 0.0475 $13.08 $0.00 $0.00
2 Heavy Highway 0.0475 $13.58 $27.16 $54.32
3 Building 0.0475 $13.08 $0.00 $0.00
4 Council 0.0475 $13.58 $27.16 $54.32
5 Technical Engineer's 0.04 $0.00 $0.00 $0.00
6 Shop 0.015 $0.00 $0.00 $0.00
7 Municipality 0.015 $0.00 $0.00 $0.00
I have a working Access 2010 IUOE.mdb that contains table, queries, forms, reports, etc
I split the database into IUOE_Fe.mdb (queries, forms, reports, etc) and IUOE_Be.mdb (tables)
I have a form that is giving me the following error on a field On Lost Focus event
Set rs = db.OpenRecordset("CodeWDOEpct") ', dbOpenSnapshot, dbForwardOnly)
'Run-time error 3251 - Operation is not supported for this type of Object
rs.Index = "id"
How can I get the code working?
CodeWDOEpct (table) looks as follows:
id is an AutoNumber, Primary Key, No Index
id Agreement WDOE OT DT TT
1 Maintenance 0.0475 $13.08 $0.00 $0.00
2 Heavy Highway 0.0475 $13.58 $27.16 $54.32
3 Building 0.0475 $13.08 $0.00 $0.00
4 Council 0.0475 $13.58 $27.16 $54.32
5 Technical Engineer's 0.04 $0.00 $0.00 $0.00
6 Shop 0.015 $0.00 $0.00 $0.00
7 Municipality 0.015 $0.00 $0.00 $0.00
Last edited: