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!

On Current Event when other code closes form?

Status
Not open for further replies.

Scoob55k

Technical User
Nov 16, 2005
62
0
0
US
This question actually began in another thread. To review:


One more question.

It's working slick right now except for one form in which I have it doing something OnCurrent. It seems to error out because the form has been closed due to the user (me in this case, testing) not having proper security enabled.

I was thinking if putting code in the Procedure I'm calling to look and see if it's this specific form, but not sure how to do that.

Below is the original code. I've tried to bypass it with an if statement, etc., but no goods.

[Staffing] = DCount("Alias", "tblClaimHandlers", "[Team]=[TMteam]")

FYI - [Staffing] is a field on the form

Thanks a million!
 
Not sure if this is why no one answered me, however I found that it works fine when I'm not in design mode of the database. If I just open it to use, it's perfect!

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top