RECORD based on other Records

  • Thread starter Greg McLandsborough
  • Start date
G

Greg McLandsborough

Is it possible to enter a record value with is a function of other record. I
want to be able automatically enter a concatinated string into a record,
base on the value of two or more record value.

I have a [project number] which I want to contain the first two digits of
[client id]&"-"&[directory]&"-"&(Autonumber).

Is this posible? Should I do this in the table of form. I could also
probably leave it blank, and any program that requires it could create it!

Any help appreciated.
 
J

Jeff Boyce

Greg

No need to store redundant data (and some very good reasons not to!).

Instead, create a query that concatenates these together. Use the query
when you need the concatenated value.

Good luck

Jeff Boyce
<Access MVP>
 
G

Greg McLandsborough

Would it be rude to ask how to concatenate the values in a query, or at
least what I should look for under help?

Jeff Boyce said:
Greg

No need to store redundant data (and some very good reasons not to!).

Instead, create a query that concatenates these together. Use the query
when you need the concatenated value.

Good luck

Jeff Boyce
<Access MVP>

Greg McLandsborough said:
Is it possible to enter a record value with is a function of other
record. I
want to be able automatically enter a concatinated string into a record,
base on the value of two or more record value.

I have a [project number] which I want to contain the first two digits of
[client id]&"-"&[directory]&"-"&(Autonumber).

Is this posible? Should I do this in the table of form. I could also
probably leave it blank, and any program that requires it could create
it!

Any help appreciated.
 
J

Jeff Boyce

Greg

Create a new (empty) query.

Add in the table with the (let's say) 2 columns you want to concatenate.

Select the two columns for display/output.

Create a third field/output for the query, something like:
ThirdField: [YourFirstField] & [YourSecondField]
(where you substitute your first and second field names as indicated).

Run the query.

Now, back in design mode, delete the first and second fields, leave only the
one you created by concatenating. Run the query!

Good luck

Jeff Boyce
<Access MVP>

Greg McLandsborough said:
Would it be rude to ask how to concatenate the values in a query, or at
least what I should look for under help?

Jeff Boyce said:
Greg

No need to store redundant data (and some very good reasons not to!).

Instead, create a query that concatenates these together. Use the query
when you need the concatenated value.

Good luck

Jeff Boyce
<Access MVP>

Greg McLandsborough said:
Is it possible to enter a record value with is a function of other
record. I
want to be able automatically enter a concatinated string into a record,
base on the value of two or more record value.

I have a [project number] which I want to contain the first two digits
of
[client id]&"-"&[directory]&"-"&(Autonumber).

Is this posible? Should I do this in the table of form. I could also
probably leave it blank, and any program that requires it could create
it!

Any help appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top