Hi,
I have a database into which I import data from Excel spreadsheet thorugh the form interface.
I need the timestamp of the import in the table for each item that I import.
The structure of the table is as follows:
ItemNo ItemName TimeStamp
1-------ABC -------(Time should get recorded here)
2-------DEF -------(Time should get recorded here)
3------ HIJ --------(Time should get recorded here)
I import the whole chunk at once, and timestamp corresponding to each item should fall in the column as above for every item.
I have a column for Timestamp in database which works when the data is manually entered into the form fields and clicked on UPDATE command button (that I have created).
rsttable.fields(fieldnumber).value=now()
But, when IMPORT command button is clicked, the timestamp doesn't appear. How to store the timestamp in the above-specified column. I hve tried giving the default value of the column as now() in the table itself but no luck. Any help...???
Note: I open up a recordset through coding
dim rsttable as new ADODB.recordset.
if rstable.state=adstateclosed then rsttable.open slqstatment, currentproject.connection, adopenkeyset, adlockoptimistic
Seeking urgent help..!!!
I have a database into which I import data from Excel spreadsheet thorugh the form interface.
I need the timestamp of the import in the table for each item that I import.
The structure of the table is as follows:
ItemNo ItemName TimeStamp
1-------ABC -------(Time should get recorded here)
2-------DEF -------(Time should get recorded here)
3------ HIJ --------(Time should get recorded here)
I import the whole chunk at once, and timestamp corresponding to each item should fall in the column as above for every item.
I have a column for Timestamp in database which works when the data is manually entered into the form fields and clicked on UPDATE command button (that I have created).
rsttable.fields(fieldnumber).value=now()
But, when IMPORT command button is clicked, the timestamp doesn't appear. How to store the timestamp in the above-specified column. I hve tried giving the default value of the column as now() in the table itself but no luck. Any help...???
Note: I open up a recordset through coding
dim rsttable as new ADODB.recordset.
if rstable.state=adstateclosed then rsttable.open slqstatment, currentproject.connection, adopenkeyset, adlockoptimistic
Seeking urgent help..!!!
Last edited: