- Local time
- Today, 13:15
- Joined
- Aug 30, 2003
- Messages
- 36,274
Sorry, I didn't look at the SQL statements closely enough. You're inserting a new record, and I think you want the max ID you got at the beginning as one of the field values (right?). More like this, additions in red:
Code:
PTEAddressInfo = "INSERT INTO ExistingClientAddressesTable([COLOR="Red"][File Number],[/COLOR] [Street],[City],[State/Province],[Country],[Zip Code])" & _
"SELECT [COLOR="red"]" & ExistingClientMAX & ",[/COLOR] Address, City, State, Country, ZIP " & _
"FROM [ProspectiveClientTable] " & _
"WHERE ProspectiveClientTable.[Prospective Number] = " & Me.[Prospective Number]