George Hewitt
Registered User.
- Local time
- Today, 18:16
- Joined
- Nov 11, 2013
- Messages
- 23
Hey all,
I am currently struggling with the following. I have created a table which has columns which are auto populated by related fields using lookups.
For example: I have an Activity tbl (for advertising activities) and a Publication tbl (which is used to select which publication the advertising activity is part of)
Ok so I have created a joined field using an update query as a unique identifier (which needs to be used for other purposes on other systems/referals.) I used the following SQL to achieve the result i wanted however instead of obtaining the lookup information (i.e. the publication name) its calling the unique identifier i.e. the publication ID (which is autonumber)
UPDATE Activity SET SRC_ID = Publication_ID & [Activity_ID];
I want it to select the first 3 digits of publication name not ID! I have fiddled around with different things but i haven't got much experience in SQL if anyone can help me/guide me it would help me alot.
Thank you
George
I am currently struggling with the following. I have created a table which has columns which are auto populated by related fields using lookups.
For example: I have an Activity tbl (for advertising activities) and a Publication tbl (which is used to select which publication the advertising activity is part of)
Ok so I have created a joined field using an update query as a unique identifier (which needs to be used for other purposes on other systems/referals.) I used the following SQL to achieve the result i wanted however instead of obtaining the lookup information (i.e. the publication name) its calling the unique identifier i.e. the publication ID (which is autonumber)
UPDATE Activity SET SRC_ID = Publication_ID & [Activity_ID];
I want it to select the first 3 digits of publication name not ID! I have fiddled around with different things but i haven't got much experience in SQL if anyone can help me/guide me it would help me alot.
Thank you
George