Connecting Tech Pros Worldwide Forums | Help | Site Map

Change part of a form while keeping the rest of the form the same

cbielich
Guest
 
Posts: n/a
#1: Nov 12 '05
I would like to be able to create a form were when clicking a button
only part of the form is changed. Like a web browser has the ability
to have another browser within it to be changed while the rest is the
same. Can this be done in access 2000

C

DFS
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Change part of a form while keeping the rest of the form the same


cbielich,

Can you be more specific? What about the form do you want to "change"?


"cbielich" <cbielich@yahoo.com> wrote in message
news:35ec0130.0312050149.18aa9055@posting.google.c om...[color=blue]
> I would like to be able to create a form were when clicking a button
> only part of the form is changed. Like a web browser has the ability
> to have another browser within it to be changed while the rest is the
> same. Can this be done in access 2000
>
> C[/color]


Danny J. Lesandrini
Guest
 
Posts: n/a
#3: Nov 12 '05

re: Change part of a form while keeping the rest of the form the same


Maybe you need to use a master form with subforms.
When you click the button, the subform is swapped out
for a different one.

This will give the appearance of what you refer to as web
browser behavior. The code behind the button will look
something like this ...

Private Sub MyButton_Click()
If Me.objMySubform.SourceObject = "sfrmFirst" Then
Me.objMySubform.SourceObject = "sfrmSecond"
ElseIf Me.objMySubform.SourceObject = "sfrmSecond" Then
Me.objMySubform.SourceObject = "sfrmThird"
ElseIf Me.objMySubform.SourceObject = "sfrmThird" Then
Me.objMySubform.SourceObject = "sfrmFourth"
Else
Me.objMySubform.SourceObject = "sfrmFirst"
End If
Me.objMySubform.Requery ' maybe this isn't necessary ???
End Sub
--

Danny J. Lesandrini
dlesandrini@hotmail.com
http://amazecreations.com


"cbielich" <cbielich@yahoo.com> wrote in message
news:35ec0130.0312050149.18aa9055@posting.google.c om...[color=blue]
> I would like to be able to create a form were when clicking a button
> only part of the form is changed. Like a web browser has the ability
> to have another browser within it to be changed while the rest is the
> same. Can this be done in access 2000
>
> C[/color]


Closed Thread