Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Report Calculation 1

Status
Not open for further replies.

jsnull

IS-IT--Management
Feb 19, 2002
99
US
I am designing a report in Access that is initiated by a form. On the form I input a quantity into a text box. Then when I click the command button I want the report to list out quan, description, style where the quantity is equal to the amount in the database times the quantity input into the text box. I'm having a bit of a struggle coming up with the syntax to get it to work, everything I've used has failed or returned a zero value.

varNewQuantity = fieldquantityindatabasequery * txtQuantity

thanx!

Jim Null
[afro]
 

Something like...
Code:
"SELECT quan * " & Forms!FormName!txtBoxName & " As NewQuan, description, style FROM yourTable "


Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top