Please support our MS SQL advertiser: Programming Forums
Views: 8523 | Replies: 10 | Solved
![]() |
try doing your calculations before your sql statment
Dim i As Double Dim MySql as string i = 50 / 100 Mysql="Select " & i & " FROM table;" rs.open MySQl,conn,3,3,1
.: We may acquire liberty, but it is never recovered if it is lost :.
irc://irc.rizon.net/#itf
irc://irc.rizon.net/#itf
It will work fine as long as one of the numbers in division is a float or similar.
Try
This will work with any numeric data.
Try
SQL Syntax (Toggle Plain Text)
SELECT (cast(50 AS float)/100)
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode