dbTalk Databases Forums  

Re: newb question: where to start

comp.database.ms-access comp.database.ms-access


Discuss Re: newb question: where to start in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
bala
 
Posts: n/a

Default Re: newb question: where to start - 08-01-2003 , 08:53 AM






hi!!!!

incase it is a continuous form it is going to be bound form.

add unbound textboxes in the footer section.

assuming there as two columns

if the name of the textboxs are txtTotalCol1 and txtTotalCol2
the name of the fields are Col1 and col2

in the control source of the first textbox add the following code

=Sum([Col1]) ' this will give the total of Col1

in second textbox

=Sum([Col2]) ' the total of Col2

if incase u want the grand total of both the columns, add another
unbound textbox( say named txtGrandTot)

txtGrandTot = cInt(txtTotalCol1) + cInt(txtTotalCol2)

u have the total

if incase u are using unbound form

u can loop thro the recordset and total it up. the upper bound of the
loop being the record count

thanx and hope this helps

regards

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.