Gary Williams
06-01-2005, 04:26 PM
Hi All,
I have an access database where I need to edit some records in one table (named enquiries). I have to identify those records where the field recordedited IS NULL and, for those records, enter into that recordedited field the value found in the field recordadded in the same record.
I can connect to the database OK and can write loops. What has got me is the copying of the values, a record at a time. In pseudocode, this is what I need:
UPDATE enquiries SET (the value in 'recordedited') = (the value in 'recordadded') WHERE recordedited IS NULL;
I shall keep experimenting until either I succeed or some genius posts the answer. (I suspect the genius will win)
Regards
Gary
I have an access database where I need to edit some records in one table (named enquiries). I have to identify those records where the field recordedited IS NULL and, for those records, enter into that recordedited field the value found in the field recordadded in the same record.
I can connect to the database OK and can write loops. What has got me is the copying of the values, a record at a time. In pseudocode, this is what I need:
UPDATE enquiries SET (the value in 'recordedited') = (the value in 'recordadded') WHERE recordedited IS NULL;
I shall keep experimenting until either I succeed or some genius posts the answer. (I suspect the genius will win)
Regards
Gary