K
Ken
I apologise if this is considered a repost, I posted below about the method
of Object... I got a response and spent the past 4 hours trying every
combination to not get that error and the only way is to omit the criteria.
This is the code I have that I think should return one record and is giving
me the error.
CntStr =
"Provider=Microsoft.Jet.OLEDB.4.0;" & "Data
Source=C:\Traffic\trafficdata.mdb"
SqlStr ="SELECT * FROM orders WHERE ((Section)=" & Chr(34) & Me!Section &
Chr(34)& ");"
Cnt.Open CntStr
Rst.Open SqlStr, Cnt
I checked to see if for some reason the unbound form would have the data
file locked and it doesn't, It would actually make me feel better if I got
the same error with no criteria.
I'm about to start bouncing my head off the desk, any help is greatly
appreciated.
of Object... I got a response and spent the past 4 hours trying every
combination to not get that error and the only way is to omit the criteria.
This is the code I have that I think should return one record and is giving
me the error.
CntStr =
"Provider=Microsoft.Jet.OLEDB.4.0;" & "Data
Source=C:\Traffic\trafficdata.mdb"
SqlStr ="SELECT * FROM orders WHERE ((Section)=" & Chr(34) & Me!Section &
Chr(34)& ");"
Cnt.Open CntStr
Rst.Open SqlStr, Cnt
I checked to see if for some reason the unbound form would have the data
file locked and it doesn't, It would actually make me feel better if I got
the same error with no criteria.
I'm about to start bouncing my head off the desk, any help is greatly
appreciated.