Composite calculated field

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
 
R

RonaldoOneNil

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

John

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
 
J

John

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
 
J

John

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
 
R

RonaldoOneNil

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
 
J

John W. Vinson

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).
 
Top