Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

'ms access+course' - microsoft access

Forum home » Delegate support and help forum » Microsoft Access Training and help » 'ms access+course' - Microsoft Access

'ms access+course' - Microsoft Access

ResolvedVersion Standard

Philip has attended:
Excel Advanced course
Access Advanced course
Project Intro Intermediate course

Microsoft Access

I have two forms, one and two, addressing two related tables, one and two. The connecting key is IDNumber. When working in form one at (say) IDNumber 5 on table one, it wish to open form two displaying IDNumber 5 on table 2.

How can I build an expression to do this, please?

RE: Microsoft Access

Hi Philip,

This is fairly simple.

1. Add a COMMAND BUTTON to your form.

2. When the wizard appears, choose FORM OPERATIONS and then OPEN FORM
(click NEXT)

3. Choose the form you want to open from the list
(click NEXT)

4. Choose the first option OPEN THE FORM AND FIND SPECIFIC DATA TO DISPLAY
(click NEXT)

5. LINK to common fields - IDNUMBER
(click NEXT)

6. Choose if you want text or an image on the button
(click NEXT)

7. Name the Comand Button for future reference - OpenRelatedFormRecord or something appropriate.
(click FINISH)

Done.

Regards

Richard

Access tip:

Open A Combo Box Automatically

This is helpful if users need to enter large amounts of data. There are two ways to open ComboBoxes when they get the focus by using the tab keys.

When the ComboBox gets focus:

Press Alt + Down Arrow on the keyboard

For it to happen automatically, needs a bit of coding:

1. Add a combo box and a text box control to the form
2. Set the combo box's On Got Focus property to the following event procedure:

Private Sub ComboBoxName _GotFocus()

Me!ComboBoxName.Dropdown

End Sub


3. Open your form in Form View and use the TAB key to make sure it works.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.