A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Need Sub form combo boxes to update form combo boxes



 
 
Thread Tools Display Modes
  #1  
Old October 3rd, 2007, 03:12 AM posted to microsoft.public.access.forms
znibk
external usenet poster
 
Posts: 115
Default Need Sub form combo boxes to update form combo boxes

I tried doing this once before, and could not get it to work so I just
proceeded in the old fashion way (adding new business to the subform combo
box, closing the main form, reopening the form, then reopening the combo box.)

I had a few minutes and decided to try to write a macro (I do not write
code) and then put it in the After Update field.

Here is what I have:

Two sub forms on my main form. Each sub form has one combo box. I can update
my tbl_business and/or my tbl_description by using these two sub form combo
boxes.

I wrote a Macro "Macro_AddNewBusiness" to simply say "Open Table" - "Table
Business" On the After Update line of the combo box on the sub form and the
main form, I entered the Macro Name "Macro_AddNewBusiness."

On the subform, after I add the new business, the table immediately appears
and I have to close it.

When I click the combo box on the main form, the combo box list appears. I
choose the name, then the actual table appears. I have to highlight or point
to the business I want, then I have to close the table for the new business
to appear as the correct business choice in the combo box on the main form.
This happens if I want to enter a business that has been on the list prior to
a new addition.

Needless to say, I don't think I'm doing this correctly. What should I be
doing? Any suggestions as I know all this would be a great time saver if I
can get it to work.


Thanks in advance

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.