Hi all
I created two tables - Employee and Folder using MS Access 2002.
Inside Employee table, I got 3 fields:
EmployeeID (Data Type:Autonumber) [primary key]
Username (Data Type: Text)
Password (Data Type: Text)
Inside Folder table, I got 3 fields
FolderID (Data Type: Autonumber) [primary key]
FolderName (Data Type: Text)
EmployeeID (Data Type: Number - Long Integer) [foreign key]
My situation is: After the user login successfully, i will save his
username into session variable. Then, they can select a folder from
the drop down box. After he press the "Add Folder" button. The name of
that folder will be add it into Folder table FolderName field. For
example:
EmployeeID Username Password
10 admin admin
11 somebody pwd
FolderID FolderName EmployeeID
1 Temp 10
2 somebody 11
Can anybody tell me how can I write the SQL for doing it?
Thank you.