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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

second field of listbox

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
I have a listbox on my subform with numbers (eg. 0,5 1 1,5 ...)

To get the total in my mainform I first create a total in my subform. The problem is he makes a sum of the first field and this is the key, index field. So I need to say make a sum of the second column. I know perhaps a dummy question, but forgot it and spend a lot of time to find

column(1) ?

Code:
=Sum([refID29].[Field](1))
 
is refID29 then name of youe list box then it shoulb be .column(1)
 
but he seems to be set [] around column and this is not working anymore.

Code:
=Sum(([refID29].[column](1)))

it should be

Code:
=Sum(([refID29].column(1))

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top