Hi there folks,
I seem to have backed myself into a corner and am looking for the least painful way out of it.
Here's some background info to my dilemma: I am trying to compile a central repository of client information. So far i have successfully sourced all the various pieces of data and have them sitting nicely in a table. Each record is automatically allocated a Replication ID as the identifier. As a Rep ID is not very pretty to produce in reports, i created a function that basically concatenated the first 3 letters of the Name with the last 3 digits of the Rep ID, to produce a code that is easier for the user to comprehend.
Here's my problem...i want to be able to add records to the table. The problem is that I want add the details straight into the table, along with the code generated by my expression. At the moment i am storing the saved details into a table, then running a query to create the new code, and then appending this to the main table.
Is there anyway of creating this "mini-code" on the fly so to speak, so that i can add details straight into the main table??
Thanks
-Jezza
P.S Sorry about the long winded question!!
I seem to have backed myself into a corner and am looking for the least painful way out of it.
Here's some background info to my dilemma: I am trying to compile a central repository of client information. So far i have successfully sourced all the various pieces of data and have them sitting nicely in a table. Each record is automatically allocated a Replication ID as the identifier. As a Rep ID is not very pretty to produce in reports, i created a function that basically concatenated the first 3 letters of the Name with the last 3 digits of the Rep ID, to produce a code that is easier for the user to comprehend.
Here's my problem...i want to be able to add records to the table. The problem is that I want add the details straight into the table, along with the code generated by my expression. At the moment i am storing the saved details into a table, then running a query to create the new code, and then appending this to the main table.
Is there anyway of creating this "mini-code" on the fly so to speak, so that i can add details straight into the main table??
Thanks
-Jezza
P.S Sorry about the long winded question!!