| | |
sql commad problem
![]() |
In a data environment I write code like:
select ([exam fee]*[other fee]) as total from table1
then it work, but when I write like below it not work:
select sum[exam fee] as total from table1
what problem with it?
select ([exam fee]*[other fee]) as total from table1
then it work, but when I write like below it not work:
select sum[exam fee] as total from table1
what problem with it?
I like sword. Attack or Defense.
my web
my web
another thing. I write like:
"select sum[exam fee] as total , sum[other fee] as total_fee from table1"
it not work
"select sum[exam fee] as total , sum[other fee] as total_fee from table1"
it not work
I like sword. Attack or Defense.
my web
my web
I don't understand by this code. I want sum[exam fee] and sum[other fee]. is it possible with your code?
I like sword. Attack or Defense.
my web
my web
•
•
•
•
I don't understand by this code. I want sum[exam fee] and sum[other fee]. is it possible with your code?
SUM is a sql function. you must use '(' & ')' for it.
change your code in this way:
"select sum([exam fee]) as total , sum([other fee]) as total_fee from table1"
thanks Mtb 925. it works well. another thing when I input exam fee in a form and when I see the report it not update. I mean exam fee is 200 and I add again 200. so report will show 400/ but it show 200, when I exit and again open the project then show 400. please help me
I like sword. Attack or Defense.
my web
my web
•
•
•
•
thanks Mtb 925. it works well. another thing when I input exam fee in a form and when I see the report it not update. I mean exam fee is 200 and I add again 200. so report will show 400/ but it show 200, when I exit and again open the project then show 400. please help me
you must reconnect it. attach your sample. i will edit it.
![]() |
Similar Threads
- sql query problem with MS Access and C# (C#)
- SQL in VB.NET problem (VB.NET)
- Problem with php and SQL (PHP)
- another MS SQL timeout problem (MS SQL)
- Weird ASP/SQL Problem (ASP)
- SQL query problem with WHERE clause (ASP)
- SQL date problem (MS SQL)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to create activation key for VB Application
- Next Thread: date show in datareport
Views: 715 | Replies: 12
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 access activex add application banned basic beep c++ calculator cd channel9 click client code coffeehouse college column convert copy creative database designer desktop dissertations dissertationthesis dissertationtopic edit error excel file filename filter flex form grid group hardware ide image implements inboxinvb installation installer label list listbox listview looping machine macro mail match memory messagebox microsoft number open pos prime print printer programmer prompt query random range range-objects readfile reading registration remotesqlserverdatabase report reports retrieve save score search sites sound spectateswamp sql string sum table textbox time variable vb vb6 vb6.0 vba vista visual visualbasic web window windows






