You have several syntax problems.
The format of an insert statement is like this:
INSERT INTO TableName (Column List) VALUES (Value List)
Where:
TableName is the table you are inserting into
Column List is a comma delimited list of the fields you are inserting values into
And Value list is a comma delimited list of the values that are to be inserted into the fields.
So... you have several problems.
I would suggest that you work out your sql insert statement in some database tool (like Access or Slq Server query analyzer) and then make your script create that statement.
For example you have the following bit of code:
Code:
& "(BrfName, BrSurname, BrAge, BrStatus, BrEmail, BrPword, BrPhone) " _
& "(BrTown, BrCountry, BrWork, BryDesc) " _
That should be like this:
Code:
(BrfName, BrSurname, BrAge, BrStatus, BrEmail, BrPword, BrPhone, BrTown, BrCountry, BrWork, BryDesc)
without the extra parenthisis in the middle... and so on.
Woody Z
http://www.learntoprogramnow.com