Results 1 to 6 of 6
  1. #1
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107

    Can I change the tab order if a yes/no box is checked?


    Hi all, this is my first post here.

    I have created a form for a simple database which is being used by another user. Basically I have sorted out the tabbing so moving from one data entry point to another on the form is correct in order but there are many boxes that do not need to be entered If a box is not checked. Is there anyway that the form will miss out certain sections is a tab is not checked? I have very little knowledge of anything outside the basics of access so if there is anyway steps in the most simplest form would be appreciated, saying this I am not sure its even possible.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Rather than adjusting the order perhaps something like this in your check box after update event

    if me.chkbox.value = -1 then

    me.Field1.tabstop = "No"

    else

    me.Field1.tabstop = "Yes"

    end if

  3. #3
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    Oh OK, let me try this. This is new territory for me.

    Thanks for your help, I'll let you know how I get on.

  4. #4
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    OK I tried this and it came up with the error Compile error: Method or data member not found. It seemed to focus on the part reading Me.chkbox.value = -1. This is all rather new to me so bit alien. Should I be using the actual name of the chxbox there so say if its called chkbox1 then I would write me.chkbox1.value? Sorry if I sound dumb.

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Yes, you will need to adjust hte code with the correct names of the controls. If you double click a control while in edit view (clicking the border of the control) the properties pane for that control should appear to the right. You can go to the Other tab and look for the name of that control.

    Controls of the Check Box type will have an integer value of -1 when they are checked. Validating this "True" or "Yes" condition should suffice. The other conditions that may exist could be 0 or Null.

    Once you validate the condition or value of the checkbox, you can adjust the properties of one or more controls. I used Field1 as a control name example. You will want to insert your control name(s) in its place and repeat the line for each control you want to be affected.

  6. #6
    ayupchap is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    107
    OK great thanks so much. I'll try this out.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. disable automatic change of tab order
    By trolleri in forum Access
    Replies: 10
    Last Post: 12-12-2013, 07:37 AM
  2. Change Status on Order
    By Stephanie53 in forum Forms
    Replies: 9
    Last Post: 05-13-2013, 11:24 AM
  3. Replies: 5
    Last Post: 07-03-2012, 12:15 PM
  4. Columns change order
    By copaaccess in forum Queries
    Replies: 1
    Last Post: 02-28-2012, 08:52 PM
  5. Records change order
    By accessbeginner in forum Access
    Replies: 1
    Last Post: 03-18-2010, 06:38 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums