L
Lisa
I am using TransferSpreadsheet to import data from Excel
back into Access 2000. I currently have the code setting
up a temptable and then using an UPDATE query to make
changes in the necessary table(s). The data is importing
into the tempTable, but the query always asks for a
parameter for the tempTable fields (Phone,
AdminOfficer, ...). I have already checked spelling and
tried using field numbers like [F19] instead of the field
name to no avail.
Can anyone help me figure out the problem with my update
query to get it working properly?
Dim query As String
query = "UPDATE IDRequest INNER JOIN BpnForm " _
& "ON IDRequest.DBRequestID =
BpnForm.DBRequestID " _
& "SET IDRequest.Phone = [" & tempTable
& "].Phone, " _
& "IDRequest.AdminOfficer = [" & tempTable
& "].AdminOfficer, " _
& "IDRequest.SubmitterName = [" & tempTable
& "].SubmitterName, " _
& "IDRequest.SubmitterEmail = [" & tempTable
& "].SubmitterEmail, " _
& "IDRequest.SubmitterPhone = [" & tempTable
& "].SubmitterPhone " _
& "WHERE (((IDRequest.DBRequestID) = [" &
tempTable & "].DBRequestID));"
DoCmd.RunSQL (query)
I am attempting to update records in the IDRequest table
where the DBRequestID field in the tempTable = the
DBRequestID in the IDRequest table.
thanks in advance for your help!!
back into Access 2000. I currently have the code setting
up a temptable and then using an UPDATE query to make
changes in the necessary table(s). The data is importing
into the tempTable, but the query always asks for a
parameter for the tempTable fields (Phone,
AdminOfficer, ...). I have already checked spelling and
tried using field numbers like [F19] instead of the field
name to no avail.
Can anyone help me figure out the problem with my update
query to get it working properly?
Dim query As String
query = "UPDATE IDRequest INNER JOIN BpnForm " _
& "ON IDRequest.DBRequestID =
BpnForm.DBRequestID " _
& "SET IDRequest.Phone = [" & tempTable
& "].Phone, " _
& "IDRequest.AdminOfficer = [" & tempTable
& "].AdminOfficer, " _
& "IDRequest.SubmitterName = [" & tempTable
& "].SubmitterName, " _
& "IDRequest.SubmitterEmail = [" & tempTable
& "].SubmitterEmail, " _
& "IDRequest.SubmitterPhone = [" & tempTable
& "].SubmitterPhone " _
& "WHERE (((IDRequest.DBRequestID) = [" &
tempTable & "].DBRequestID));"
DoCmd.RunSQL (query)
I am attempting to update records in the IDRequest table
where the DBRequestID field in the tempTable = the
DBRequestID in the IDRequest table.
thanks in advance for your help!!