Ok, i need some big advice from you people i think.
Let me explain:
I have an append query that adds records to my main customer table from a temporary table. The temporary table contains the up-to-date customer info exported from my sales system. The records are appended if the customer number does not already exist in the main table. This is not a problem.
But, as part of my database, call records are logged and can be assigned to either an existing customer, or a prospective customer which will not already have a customer number.
Therefore, i have set my database up so that it gives a prospective customer a temporary number (autonumber) in the main customer table.
Calls can then be logged against this number, and then the number can be changed to the one from the sales system once they become an active customer.
Again, this is fine.
My problem is, i would like something in place when i run the append query that checks to see if the new customers that are been appended are not already in under a temporary number, and then giving the option to change the temp number to the live one.
The check could be based on postcode and/or company name, as these are likely to be the same, but i would also need an option for if the customer is not already in.
I have no idea at all how to implement this, so any help to set me on the right track would be greatly appreciated.
I hope some of this made sense.
Cheers
Dave
Let me explain:
I have an append query that adds records to my main customer table from a temporary table. The temporary table contains the up-to-date customer info exported from my sales system. The records are appended if the customer number does not already exist in the main table. This is not a problem.
But, as part of my database, call records are logged and can be assigned to either an existing customer, or a prospective customer which will not already have a customer number.
Therefore, i have set my database up so that it gives a prospective customer a temporary number (autonumber) in the main customer table.
Calls can then be logged against this number, and then the number can be changed to the one from the sales system once they become an active customer.
Again, this is fine.
My problem is, i would like something in place when i run the append query that checks to see if the new customers that are been appended are not already in under a temporary number, and then giving the option to change the temp number to the live one.
The check could be based on postcode and/or company name, as these are likely to be the same, but i would also need an option for if the customer is not already in.
I have no idea at all how to implement this, so any help to set me on the right track would be greatly appreciated.
I hope some of this made sense.
Cheers
Dave