CharlesWhiteman
Registered User.
- Local time
- Today, 21:27
- Joined
- Feb 26, 2007
- Messages
- 421
I have two fields which are key to this question; 1) A Customer Code and 2) A Quote Reference.
Both are autonumbered through code as example below:
Quote Reference:
Me!txtQuoteRef.DefaultValue = Nz(DMax("[QuoteRef]", "tblQuotes"), 0) + 1
Company Code
Me!txtCompanyCode.DefaultValue = Nz(DMax("[CompanyCode]", "tblCompanies"), 110) + 1
What i would like to be able to do for the quote reference is create code which concatenates both fields together so that if I have a company code of 130 and its quote ref 3 I get a quote ref of 1301 etc etc
I'm really brain battered on this one and none of my trials work! Pleeeease heeeelp
Both are autonumbered through code as example below:
Quote Reference:
Me!txtQuoteRef.DefaultValue = Nz(DMax("[QuoteRef]", "tblQuotes"), 0) + 1
Company Code
Me!txtCompanyCode.DefaultValue = Nz(DMax("[CompanyCode]", "tblCompanies"), 110) + 1
What i would like to be able to do for the quote reference is create code which concatenates both fields together so that if I have a company code of 130 and its quote ref 3 I get a quote ref of 1301 etc etc
I'm really brain battered on this one and none of my trials work! Pleeeease heeeelp