nicks60610
MIS
I am trying to do something that defies all logic according to my ASP code, hehehe. I have a database which I am trying to update a field in, but this field is only tied together to another table via a date field and the field I need to update is a comments field.
Basically this:
Page1: Fill out a form and submit to the DB, the DB updates the fields and the date field is the same in table 1 and 2 as they are related.
Page2: I want to update the comments field in table 2 but when I try to tell the DB that the date_created field is where it should filter, it tells me it is an invalid field.
Table 1 creates the date field (entered_date)
Table 2 takes this date and puts it in the (date_created) field.
When I do my update statement I do this:
objConn.execute ("Update EQ_EVENTS_COMMENTS set REMARKS = '"& fldRemarks & "' WHERE Date_Created = ('" & entered_date & "')
But since the 2 fields are from two different tables it does not know what to do. I even tried carrying the value over in a session string, but it still did not want to.
Any ideas???
Basically this:
Page1: Fill out a form and submit to the DB, the DB updates the fields and the date field is the same in table 1 and 2 as they are related.
Page2: I want to update the comments field in table 2 but when I try to tell the DB that the date_created field is where it should filter, it tells me it is an invalid field.
Table 1 creates the date field (entered_date)
Table 2 takes this date and puts it in the (date_created) field.
When I do my update statement I do this:
objConn.execute ("Update EQ_EVENTS_COMMENTS set REMARKS = '"& fldRemarks & "' WHERE Date_Created = ('" & entered_date & "')
But since the 2 fields are from two different tables it does not know what to do. I even tried carrying the value over in a session string, but it still did not want to.
Any ideas???