cdahrens
04-17-2004, 11:23 AM
When I try to view a field I get the following error, "Item cannot be found in the collection corresponding to the requested name or ordinal"
I used the wizard to write this code.
Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseClient
db.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" & gStrDb & ";"
Set adoPrimaryRS = New Recordset
adoPrimaryRS.Open "select Name,PhoneNum,FaxNum,WebPage,Address,Address2,City,State,Zip,BillAddre ss,BillAddress2,BillCity,BillState,BillZip,FedAccNum,FedUsrName,FedPas sword,UPSAccNum,UPSUsrName,UPSPassword from Client", db, adOpenStatic, adLockOptimistic
I get the error when trying something like this.
str = CStr(adoPrimaryRS!ClientID)
I am thinking that the recordset may need to be set up differently.
I used the wizard to write this code.
Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseClient
db.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" & gStrDb & ";"
Set adoPrimaryRS = New Recordset
adoPrimaryRS.Open "select Name,PhoneNum,FaxNum,WebPage,Address,Address2,City,State,Zip,BillAddre ss,BillAddress2,BillCity,BillState,BillZip,FedAccNum,FedUsrName,FedPas sword,UPSAccNum,UPSUsrName,UPSPassword from Client", db, adOpenStatic, adLockOptimistic
I get the error when trying something like this.
str = CStr(adoPrimaryRS!ClientID)
I am thinking that the recordset may need to be set up differently.