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

How do I initialise a number field 1

Status
Not open for further replies.

shortstuff2212

Programmer
Apr 12, 2002
35
0
0
GB
I have a data table which looks like this:-

PSNum Electorate From Electorate To
1 1 2899
1 3005 4000

I need to find out how many electorate are in the above table and I have a formula like this

{PollingStationRange.ElectorateTo} - {PollingStationRange.ElectorateFrom}+1

Because I am grouping on the PSNum and I need the total number of electors from both ranges I need to initialise the field on the grouping when the field has done the calculation. How do I do this.

Any help would be greatly appreciated.
 
To initialize any field you:

If it is a numbervar

NumberVar yourfield:= 0 ;

If it is a CurrencyVar

CurrencyVar yourfield:= 0 ;

and so on Mark
Email: markanas333@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top