i am a very novice user and just two weeks before start working on Access.
i am making some data input form.
i have a main form and then i have some connected forms with that..
on the basis of selection of combo box i can open the connected forms .
But i want the things that they should open in the main form on the right.
i have only two fields on main form and i want to populate rest from sub form.
this is the VB code how i can open connect the new forms on the basis of combo selection from main form.
"
Private Sub Service_AfterUpdate()
Dim strForm As String
If Me.Service = "Airsure" Then
strForm = "Airsure_input"
ElseIf Me.Service = "AirsureAdditionalCompensation" Then
strForm = "AirsureAdditionalCompensation_input"
ElseIf Me.Service = "BFPO_LargeLetter" Then
strForm = "BFPO_LL_input"
ElseIf Me.Service = "BFPO_Packet" Then
strForm = "BFPO_Packets_input"
ElseIf Me.Service = "e24Oversize" Then
strForm = "e24Oversize_input"
ElseIf Me.Service = "EmergencyUkTracked" Then
strForm = "EmergencyUkTracked_input"
ElseIf Me.Service = "RegisteredMail" Then
strForm = "RegisteredMail_input"
ElseIf Me.Service = "UKTracked" Then
strForm = "UKTracked_input"
ElseIf Me.Service = "UKTrackedPriority" Then
strForm = "UKTrackedPriority_input"
Else
strForm = "main"
End If
DoCmd.OpenForm strForm, , , "input= " & Me.Service
End Sub
"
i want the other forms to be shown in main form not opening as separate forms.
i want the strategy to populate all the details from all sub forms into a single table.
it will be highly appreciated if someone can guide me.
as i mentioned i am very novice user but help will be highly appreciated.
Regards
A learner