L
Lester Lane
Hi all,
I've managed to export data from an old mdb into xml, then run Excel
vba code to sort it so it will fit the new database (Access 2003), run
access vba to load the resulting spreadsheets into my new schema
(imported in from Development with no data/relationships) and all I
need to do now to "save" time is create the relationships in Access
vba code for the new database.
I have tried this:
ALTER TABLE tblAccountClient ADD CONSTRAINT relAccount_AccountClient
FOREIGN KEY (AccountID) REFERENCES tblAccount (AccountID) ON UPDATE
CASCADE
for example, both as a DoCmd.RunSQL and a Data Def query. It does not
seem to recognise the UPDATE part of ON UPDATE. I also wish to set ON
DELETE and the same happens.
Plus can anyone tell me how to specify the more bizarre joins such as
one to one and relation left?
Thanks in advance
I've managed to export data from an old mdb into xml, then run Excel
vba code to sort it so it will fit the new database (Access 2003), run
access vba to load the resulting spreadsheets into my new schema
(imported in from Development with no data/relationships) and all I
need to do now to "save" time is create the relationships in Access
vba code for the new database.
I have tried this:
ALTER TABLE tblAccountClient ADD CONSTRAINT relAccount_AccountClient
FOREIGN KEY (AccountID) REFERENCES tblAccount (AccountID) ON UPDATE
CASCADE
for example, both as a DoCmd.RunSQL and a Data Def query. It does not
seem to recognise the UPDATE part of ON UPDATE. I also wish to set ON
DELETE and the same happens.
Plus can anyone tell me how to specify the more bizarre joins such as
one to one and relation left?
Thanks in advance