C
Cathy
I am presently using a TransferSpreadsheet command to import information from
an Excel spreadsheet to a table.
On this table I have a field to capture the UserID. I am getting the UserID
by using the following function:
Public Function UserID()
UserID = Environ("USERNAME")
End Function
I can not use this function as a default in the table. I haven't been able
to figure out a way to attach it to the TransferSpreadsheet. I can use a
Modify Table query to apply it after the data is loaded, but then there is
risk if two users are importing their data at the same time. (This is a real
risk for this table because many users have to import their information
within a small window of time.) We don't want the users to add their UserID
to their spreadsheets. We wanted this to be done in the background as an
audit trail.
What other options do I have to import the UserID with the data?
Thank you,
Cathy
an Excel spreadsheet to a table.
On this table I have a field to capture the UserID. I am getting the UserID
by using the following function:
Public Function UserID()
UserID = Environ("USERNAME")
End Function
I can not use this function as a default in the table. I haven't been able
to figure out a way to attach it to the TransferSpreadsheet. I can use a
Modify Table query to apply it after the data is loaded, but then there is
risk if two users are importing their data at the same time. (This is a real
risk for this table because many users have to import their information
within a small window of time.) We don't want the users to add their UserID
to their spreadsheets. We wanted this to be done in the background as an
audit trail.
What other options do I have to import the UserID with the data?
Thank you,
Cathy