If I had my way, I'd be using SQL Server and PHP to create web based forms but my professor doesn't want that he wants us to use Access for the database and to create the UI, but we have to use SQL for all the queries.
My database is a simple one that holds customer info and info about their PC's that need repair and what repairs were performed. I have my tables done and the relationships done. I believe they are in 3NF form, if not they are very close, but that isn't where I am stuck.
I have a form to add data (Customer Info) to the Customer table. The user can enter the data into the fields of my form and then press a button to save the data. That button has an event with SQL code. The problem is if I use the INSERT INTO command what do I use for the values? I want the data in the fields to be the values but I don't know how to reference them.
I don't know VBA at all, can I just put the SQL code in the VBA code builder like below or do I have to do something special with it?
Also C_ID is my PK and is set to be an autonumber. I think my professor wants that done in SQL but getting the forms to work is a bigger priority.
INSERT INTO Customer ([C_ID], [C_FNAME], [C_LNAME], [C_ADDRESS], [C_TOWN], [C_STATE], [C_PHONE], [C_EMAIL]) VALUES (What do I use to reference the form fields?);
I am using Access 2013 at work but I have provided both the .accdb and .mdb files.
Any assistance is much appreciated.
My database is a simple one that holds customer info and info about their PC's that need repair and what repairs were performed. I have my tables done and the relationships done. I believe they are in 3NF form, if not they are very close, but that isn't where I am stuck.
I have a form to add data (Customer Info) to the Customer table. The user can enter the data into the fields of my form and then press a button to save the data. That button has an event with SQL code. The problem is if I use the INSERT INTO command what do I use for the values? I want the data in the fields to be the values but I don't know how to reference them.
I don't know VBA at all, can I just put the SQL code in the VBA code builder like below or do I have to do something special with it?
Also C_ID is my PK and is set to be an autonumber. I think my professor wants that done in SQL but getting the forms to work is a bigger priority.
INSERT INTO Customer ([C_ID], [C_FNAME], [C_LNAME], [C_ADDRESS], [C_TOWN], [C_STATE], [C_PHONE], [C_EMAIL]) VALUES (What do I use to reference the form fields?);
I am using Access 2013 at work but I have provided both the .accdb and .mdb files.
Any assistance is much appreciated.