Grid pane? I don't know, I never use them. However, my expectation would
be that you the expression as it is normally written in the sql statement.
Are you talking about an ADP project or a MDB file with linked tables?
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail:
http://cerbermail.com/?QugbLEWINF
Sylvain, thank you so much once again for your help. I am unclear as to
how
I convert my fields, or exactly what that means. Could you maybe
elaborate,
or tell me how to enter it in the grid pane?
:
Your syntax appears to be OK. Are you using this expression in a Select
statement or somewhere else?
Also, you will have rounding & truncating problem dividing two tinyint as
the result will also be a tiniyint. You should convert or cast these
values
into float (8 bytes) or real (4 bytes) before making the division:
select convert (float, a) / convert (float, b) as [%Drops Spliced] from
table1
Of course, in this simple case, all you have to do is to convert only one
of
these two values but if you have more complex expressions and
parenthesis,
the situation will be more complicated if you are trying to cheat.
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail:
http://cerbermail.com/?QugbLEWINF
Greetings all. Does anyone know the syntax to do a simple divison
calculation in a view? I have tried wording it every way possible, but
I
can
not get it to work. I need to do this expression.
dbo.tblmdu.qty_drops_spliced/dbo.tblmdu.qty_drops AS [%Drops Spliced]
both fields are tinyint. Thanks for any help.