val() function in query - without causing circular reference. (1 Viewer)

Leo_Polla_Psemata

Registered User.
Local time
Yesterday, 21:51
Joined
Mar 24, 2014
Messages
364
Hi, I have a field, name "weight", data type short text.
The data is displayed like this 00015300.350
I can convert this to number by using the val function in query like this. expr1:val(weight)

The question is IF we can keep the name of field "weight" in the query, without causing circular reference.
Is there any workaround ?
 

isladogs

MVP / VIP
Local time
Today, 05:51
Joined
Jan 14, 2017
Messages
18,209
You will need to use a different name e.g. WeightX
However if its a big issue, save the query then create a new query based on that and add a field: Weight:WeightX
 

Leo_Polla_Psemata

Registered User.
Local time
Yesterday, 21:51
Joined
Mar 24, 2014
Messages
364
Thanks, this is what I am doing, no big issue but, as time grows on, i end up with too many objects in my database,
many of those redundant and is a bit difficult to tide it up.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 00:51
Joined
Feb 19, 2002
Messages
43,233
Why not fix the data type to be numeric? If you also need UOM, store it in a separate field.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 00:51
Joined
Feb 19, 2002
Messages
43,233
Sorry, that's a fairly common acronym in manufacturing or inventory systems in the US. It isn't industry specific.
 

isladogs

MVP / VIP
Local time
Today, 05:51
Joined
Jan 14, 2017
Messages
18,209
No worries. Tony Hine keeps saying I use acronyms all the time. It may be common in the UK as well for all I know but it was new to me.
 

Users who are viewing this thread

Top Bottom