Composite calculated field

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

How can I have a table field made up of data from two or more other fields
in the same table?

Thanks

Regards
 
Why would you want to do this ?
You can display your requirement in a query, form or report using
=[Field1] & [Field2]
 
I need to use the field in a query ORDER BY clause.

Regards

RonaldoOneNil said:
Why would you want to do this ?
You can display your requirement in a query, form or report using
=[Field1] & [Field2]

John said:
Hi

How can I have a table field made up of data from two or more other
fields
in the same table?

Thanks

Regards
 
I need to use the field in a query WHERE and ORDER BY clauses.

Regards

RonaldoOneNil said:
Why would you want to do this ?
You can display your requirement in a query, form or report using
=[Field1] & [Field2]

John said:
Hi

How can I have a table field made up of data from two or more other
fields
in the same table?

Thanks

Regards
 
Can I use this?

SELECT *
FROM Clients
WHERE [Type] & [Company] & Str([ID]) > "some value"
ORDER BY [Type] & [Company] & Str([ID])

Thanks

Regards

RonaldoOneNil said:
Why would you want to do this ?
You can display your requirement in a query, form or report using
=[Field1] & [Field2]

John said:
Hi

How can I have a table field made up of data from two or more other
fields
in the same table?

Thanks

Regards
 
WHERE ((([Field1] & [Field2])="criteria")) ORDER BY [Field1] & [Field2];

John said:
I need to use the field in a query WHERE and ORDER BY clauses.

Regards

RonaldoOneNil said:
Why would you want to do this ?
You can display your requirement in a query, form or report using
=[Field1] & [Field2]

John said:
Hi

How can I have a table field made up of data from two or more other
fields
in the same table?

Thanks

Regards
 
Can I use this?

SELECT *
FROM Clients
WHERE [Type] & [Company] & Str([ID]) > "some value"
ORDER BY [Type] & [Company] & Str([ID])

Ummmm...

Try it and see. Can't see why not (other than that if your ID is numeric then
93 will sort after 101 since you're converting it to a string).
 

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

Back
Top