Solved

How populate form field with an option for a popup form

Posted on 2012-12-27
4
332 Views
Last Modified: 2012-12-27
I have a form and the user can create a new record from the navigation bar at the bottom of the form.  There is no command button to add a new record.  When the user clicks the add record button (on the navigation bar at the bottom of the form) I want a form to popup that has three choices for the user to select from.  This form will have three option buttons... (M)anufacturing, (P)roposal, and (I)nstallation.  When the user has selected one of the three choices I need the first form to have a field populated with either a "M", "P", or "I" (from the form that popped up).  The name of the field on the first form is "txtDrawingType"   The name of the 1st form is "frmDrawings" and the name of the 2nd form is "frmTypeSelection".

There is a 2nd part to this question but since we are to ask only one question per topic, I will save it until this one has been resolved.

--Steve
0
Comment
Question by:SteveL13
  • 2
4 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 38724841
Is this an option group that you are working with?

If so, use the After Update event of the Option Group:

Select Case Me.fraYourOptionGroupName
        Case 1:
                 Forms!frmDrawings.txtDrawingType= "M"
        Case 2:
                 Forms!frmDrawings.txtDrawingType= "P"
        Case 3:
                 Forms!frmDrawings.txtDrawingType= "I"
End Select

Open in new window

0
 

Author Comment

by:SteveL13
ID: 38724870
Nice.  But how do I launch the 2nd form from the navigation bar on the bottom of the 1st form?
0
 

Author Comment

by:SteveL13
ID: 38724923
Actually, never mind.  I'm going to accept and go on to the 2nd question.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 38724933
On the current event of the form:

Sub Form_Current()
    If me.NewRecord then
        DoCmd.OpenForm "frmYourSecondForm"
    End if
End sub


JeffCoachman
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now