Because i am a student in SQL and I can only use Access if I build my DB in SQL, I can do that but there are some code lines that Access wont accept`, so I thought if I make it the normal way in Access and then look at the code then I could see the right way to do it. I have looked at the Jet but i can not run it in Windows 10 - is there a problem with that ?
yes i still have problems, when I try the vba code you made, I get an error saying that it don't find a specific index for the field that refers to in the primary tabel I have tried to compare, and I thinks i looks right.
Ups - now I found it ! I haven't made a Primary key in person; So yes now I am on line again thanks to you:))
hi I don't now if you vill help me again, but I trait to create new person tabel with the same vba syntax as you show me, but it ditten funktion, it looks like as it is the sentence "GENERATED BY DEFAULT AS IDENTITY" do you have an idea?
CREATE TABLE person (id int GENERATED BY DEFAULT AS IDENTITY, startdato date, slutdato date not null, navn varchar(50) not null, gade varchar(50) not null, postnr int references postnummer (postnr), email varchar(80), PRIMARY KEY(id, startdato));
I have made this in a Query but want work INSERT INTO person (STARTDATO, SLUTDATO, NAVN, GADE, POSTNR, EMAIL ) VALUES ('2015-09-01' , '2015-12-01', 'Hans Iversen', 'Den ene vej', 7400, 'hi@eamv.dk');
The insert looks OK from here, dont you get an error with some information as to what is wrong?
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.