E
EagleOne@microsoftdiscussiongroups
2003
Want to calculate a Sum of a field in dbs2.Tbl1 dbs1.Tbl1 has a similar
field name.
The DSum VBA statement which follows works fine but not on the desired dbs2:
Reg7Count = IIf(IsNull(DCount("[AMT]", "ChooseData", "[Reg_Numb]=
'07'")), _
0, DCount("[AMT]", "ChooseData", "[Reg_Numb]= '07'"))
Reg7Count number is from dbs1.Tbl1 not dbs2.Tbl1 (dbs1 is Currentdb.name)
How do I direct DSum to dbs2?
Or how do I make dbs2 the currentdb with dbs1 still in the background?
TIA
EagleOne
Want to calculate a Sum of a field in dbs2.Tbl1 dbs1.Tbl1 has a similar
field name.
The DSum VBA statement which follows works fine but not on the desired dbs2:
Reg7Count = IIf(IsNull(DCount("[AMT]", "ChooseData", "[Reg_Numb]=
'07'")), _
0, DCount("[AMT]", "ChooseData", "[Reg_Numb]= '07'"))
Reg7Count number is from dbs1.Tbl1 not dbs2.Tbl1 (dbs1 is Currentdb.name)
How do I direct DSum to dbs2?
Or how do I make dbs2 the currentdb with dbs1 still in the background?
TIA
EagleOne