G
Guest
This is only a portion of vba that runs on form close.
There is a bunch of dim statements before this, and stuff after. If it is
necessary, I can copy that stuff as well. But I have two questions (for now)
' first, what does this line mean?
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.SetWarnings False
Set dbs = CurrentDb
AllValues = " "
'and second, what does this line mean?
RecCntr = DCount("[ORPS Designator]", "[Type]", "[ORPS Designator] =
Forms![ORPS Data]![ORPS Designator]")
If RecCntr > 0 Then . . .
TIA
There is a bunch of dim statements before this, and stuff after. If it is
necessary, I can copy that stuff as well. But I have two questions (for now)
' first, what does this line mean?
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.SetWarnings False
Set dbs = CurrentDb
AllValues = " "
'and second, what does this line mean?
RecCntr = DCount("[ORPS Designator]", "[Type]", "[ORPS Designator] =
Forms![ORPS Data]![ORPS Designator]")
If RecCntr > 0 Then . . .
TIA