F
FatMan
Hi all:
I need some help working with a SQL Insert Into statement. I have used it
to add a record to a table and replace one field with the desired data, with
the help of a previous post. To be perfectly honest though I don't
understand it as I don't normally use SQL.
The code I have used to add the record and update the value for field
FileName is:
CurrentDb.Execute ("INSERT INTO tblFileName (FileName) SELECT """ & Response
& """")
Now I am faced with a much larger task of trying to add a record to table
and update 13 fields with the values stored in variables in my code. The
fields in the table (tblFillingData) and data types are as follows:
Seg01 - text field
Seg02 - text field
Seg03 - text field
Seg04 - text field
Seg05 - number (double)
Seg06 - number (double)
Seg07 - Date/Time (value will always be a time)
Seg08 - Date/Time (value will always be a time)
Seg09 - Date/Time (value will always be a time)
Seg10 - number (double)
Seg11 - text
Seg12 - text
Seg13 - number (long integer)
If someone could please explain the syntax to use the SQL Insert Into
statement to append a record to a table (table: tblFillingData) with the
variables stored in my program I would greatly appreciated it.
Thanks,
FatMan
I need some help working with a SQL Insert Into statement. I have used it
to add a record to a table and replace one field with the desired data, with
the help of a previous post. To be perfectly honest though I don't
understand it as I don't normally use SQL.
The code I have used to add the record and update the value for field
FileName is:
CurrentDb.Execute ("INSERT INTO tblFileName (FileName) SELECT """ & Response
& """")
Now I am faced with a much larger task of trying to add a record to table
and update 13 fields with the values stored in variables in my code. The
fields in the table (tblFillingData) and data types are as follows:
Seg01 - text field
Seg02 - text field
Seg03 - text field
Seg04 - text field
Seg05 - number (double)
Seg06 - number (double)
Seg07 - Date/Time (value will always be a time)
Seg08 - Date/Time (value will always be a time)
Seg09 - Date/Time (value will always be a time)
Seg10 - number (double)
Seg11 - text
Seg12 - text
Seg13 - number (long integer)
If someone could please explain the syntax to use the SQL Insert Into
statement to append a record to a table (table: tblFillingData) with the
variables stored in my program I would greatly appreciated it.
Thanks,
FatMan