Hello,
I have a button that copies current record and paste them into a new record. I am trying to keep the relationship that these records have with other tables. For example, the copied record is of a policy and has a relationship with a location. I have the policy copied, but want to add the location and connect it to the new policy.
I was using the DoCmd commands to copy and paste the record and whenever I am trying to get the new Policy ID, it came back as a Long instead of an Integer. I need the Integer value so I can continue on with my SQL inserts for the location.
I have tried using Max(ID), DAO rs.movelast and both returns Long instead of the number.
Please help and thanks.