Results 1 to 5 of 5
  1. #1
    Nokia N93 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2010
    Posts
    55

    help in choosing from list


    Hello, i need ur help
    i have one table:
    Telephone
    Name
    Type of call (personal, question, problem)
    and other information (problem , solution, notes ... )

    I want when i choose Personal ,, just the To which Depratment field
    if i choose Question ,,, just the to whom an d notes fielsd to appear
    if i choose Problem,,, other fields to appear

    the issue is that i want all of them in one form
    I tried the hidden Attributes,, but i didn't figure out what code should i write

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Hi Nokia 93 well what is the actual issue here. can u pls attach a demo database in Access 2000 format so that I can see it nd do the needful if necessary. I think you had posted another problem regarding opening different forms based on the value selected in a combobox Is that problem solved if yes mark it solved.

  3. #3
    Nokia N93 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2010
    Posts
    55
    Hi maximum
    I attached a sample File and a sample image explaining what i mean
    and i already marked it as SOLVED


  4. #4
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    I have modified the mdb file and now you will get the following:

    1) when you select Personal in the CallType Combo only ToDeparment TextBox is Visible.
    2) When You select Question in the CallType Combo Text Boxes Department, Solution and Problem is Visible.
    3) When You select Problem in the CallType Combo Text Boxes Department, Solution and Problem is Visible.

    I have used two Codes one in the AfterUpdate event of the ComboBox and the other in the OnCurrent even of the from. The Second code in the on current event ensures that the correct Textboxes are displayed when u navigate through records according to the value entered in the CallType Combobox.

    Private Sub CallType_AfterUpdate()
    Select Case Me.CallType
    Case Is = "Personal"
    Me.ToDepartment.Visible = True
    Me.Solution.Visible = False
    Me.Problem.Visible = False
    Case Is = "Question"
    Me.ToDepartment.Visible = True
    Me.Solution.Visible = True
    Me.Problem.Visible = True
    Case Is = "Problem"
    Me.ToDepartment.Visible = True
    Me.Solution.Visible = True
    Me.Problem.Visible = True
    End Select
    End Sub

    Private Sub Form_Current()
    If Me.NewRecord Then
    Me.ToDepartment.Visible = False
    Me.Solution.Visible = False
    Me.Problem.Visible = False
    Else
    Select Case Me.CallType
    Case Is = "Personal"
    Me.ToDepartment.Visible = True
    Me.Solution.Visible = False
    Me.Problem.Visible = False
    Case Is = "Question"
    Me.ToDepartment.Visible = True
    Me.Solution.Visible = True
    Me.Problem.Visible = True
    Case Is = "Problem"
    Me.ToDepartment.Visible = True
    Me.Solution.Visible = True
    Me.Problem.Visible = True
    End Select
    End If
    End Sub

    refer to the mdb file attached. If this solves your problem mark this thread solved

  5. #5
    Nokia N93 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2010
    Posts
    55
    Really thanx a lot

    you helped me

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

Similar Threads

  1. Replies: 1
    Last Post: 11-26-2010, 05:22 AM
  2. Union Query (choosing between two fields)
    By naveehgreen in forum Programming
    Replies: 1
    Last Post: 06-17-2010, 03:24 PM
  3. Input data from one list box to another list box
    By KellyR in forum Programming
    Replies: 0
    Last Post: 06-04-2010, 11:24 AM
  4. Replies: 3
    Last Post: 03-25-2010, 12:31 PM
  5. List box to populate other list boxes
    By Nathan in forum Forms
    Replies: 0
    Last Post: 03-03-2009, 07:22 PM

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