ChewDoggie
Programmer
G'morning all,
I'm not good with sql statements and don't know how to do what I want. If someone could help, that'd be great. I want to query a table and include, in the results, a field that does NOT reside in the table (or in Any Table for that matter) and this field must be updatable (in the recordset). So I have this query that looks like this:
sql = "select racerid, fname, lname, amanum, city, '' as status from racer"
rsRacer.Open sql, cn, adOpenKeyset, adLockOptimistic
If not rsRacer.EOF Then
rsRacer!Status = "Y"
Else
rsRacer!Status = "N"
End If
rsRacer.Update
The "status" field doesn't reside in the racer table. ALL OF THE OTHER FIELDS DO. WHen I execute this sql statement, and try to update the "status" field with new data, I get an error msg, "Overflow"
How can I get around this?
Thanks!
ciao for niao!
AMACycle
American Motorcyclist Association
I'm not good with sql statements and don't know how to do what I want. If someone could help, that'd be great. I want to query a table and include, in the results, a field that does NOT reside in the table (or in Any Table for that matter) and this field must be updatable (in the recordset). So I have this query that looks like this:
sql = "select racerid, fname, lname, amanum, city, '' as status from racer"
rsRacer.Open sql, cn, adOpenKeyset, adLockOptimistic
If not rsRacer.EOF Then
rsRacer!Status = "Y"
Else
rsRacer!Status = "N"
End If
rsRacer.Update
The "status" field doesn't reside in the racer table. ALL OF THE OTHER FIELDS DO. WHen I execute this sql statement, and try to update the "status" field with new data, I get an error msg, "Overflow"
How can I get around this?
Thanks!
ciao for niao!
AMACycle
American Motorcyclist Association