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

ms access

ResolvedVersion 2003

Vimal has attended:
Access Introduction course
Access Intermediate course

MS Access

I'm currently developing a project on MS Access 2003 and I stuck at a particular point.

I have created a form "student payment details". Within that form I have inputted a combo box, where user is able to click on the combo box and from the drop down list user selects type of payment made by student either Credit card or Cheque.

I have also created forms for Credit Card or Cheque payment details individually, and I have also crated individual macros for the forms to open up when I run the macro.

But what I can't do is link the macro within the combo box, so when user selects either credit card or cheque from the list...I want the forms for either credit card or cheque forms to open up automatically...depending on the type of payment is selected...please help??

many thanks

Regards

Vimal

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.