Alright-
This seemed like such an easy idea - but it's not working for me. I'm kinda messing around with access preparing for an upcoming project.
Here's what I'm trying to do:
I have a table with a bunch of client information [client]. Primary key is an autonumber field [id].
I have another table [signups] with classes taken information. This is linked to the client table through the autonumber field, both columns are titled [id].
This is my code. All I want to do is set test to on for every record:
UPDATE clients
LEFT JOIN signups
ON clients.ID = signups.id
SET signups.test = 1;
So when I do an inner join - it tells me 0 records are going to be updated - which makes sense.
A right join will also show 0 records to be updated.
A left join says all the records will show up - but then it tells me that there are key violations for every record.
Why is it doing this? And how do fix it?
This seemed like such an easy idea - but it's not working for me. I'm kinda messing around with access preparing for an upcoming project.
Here's what I'm trying to do:
I have a table with a bunch of client information [client]. Primary key is an autonumber field [id].
I have another table [signups] with classes taken information. This is linked to the client table through the autonumber field, both columns are titled [id].
This is my code. All I want to do is set test to on for every record:
UPDATE clients
LEFT JOIN signups
ON clients.ID = signups.id
SET signups.test = 1;
So when I do an inner join - it tells me 0 records are going to be updated - which makes sense.
A right join will also show 0 records to be updated.
A left join says all the records will show up - but then it tells me that there are key violations for every record.
Why is it doing this? And how do fix it?