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

Customized MenuBar; However, FormOpen Shows All Records

Status
Not open for further replies.

b31luv

Technical User
Feb 21, 2002
171
US
I have two (2) forms frmArea and frmEquipment. A ControlButton on frmArea opens frmEquipment based on the current record (or selected record) of frmArea. I decided I didn't want to have control buttons on my forms and decided to customize my menubar and toolbars. I found a really good thread from Neil in this forum that help me customize. The problem is that when I use the MenuBar to open frmEquipment the form opens showing all records. Is there a way to correct this and only have frmEquipment reflect information based on the selected record of frmArea?

I also tried inserting the name of the command button in as the name in the menu bar =OpenfrmEquipment and I still have the same problem.

Thanks
 
I'm sorry, I added the =OpenfrmEquipment to the On Action in the properties and it tells me it can't find the function name. I figure I should make the sub global or public. Please advise how.
 
How are ya b31luv . . .

Just transfer the function to a [blue]module[/blue] in the [blue]modules window[/blue].

Calvin.gif
See Ya! . . . . . .
 
AceMan1,

I transferred the function to a new module which I named global and it still tells me that the function name can't be found.
 
It's finding my function now; but it is telling me that I have an invalid use of Me Keyword (Complie Error).
 
Just a guess:
Replace all occurrences of Me with Forms!frmArea

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top