Results 1 to 4 of 4
  1. #1
    brs's Avatar
    brs is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    17

    insert value in a textbox based on a combobox

    hi guys,

    i have a bill search form which should show bill falling between a date range.


    date range i have added in a table - range - which has three fields = range, begindate, enddate.
    now in bill search formi have the combo box - rangecombo and two text boxes begintext and endtext.

    when i change range in rangecombo the values in begintext and endtext should change accordingly.how can this be done? help

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    If rangecombo uses table range as its data source, you could include begindate and enddate as hidden columns and set the control source property of begintext and endtext to something like:
    =
    rangecombo.Column(1)
    and:
    =rangecombo.Column(2)
    Remember that the column count is zero based, so (1) is the second column and (2) is the third column.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    brs's Avatar
    brs is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2014
    Posts
    17
    thanks bob
    works perfectly

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,610
    Good. Glad to be help
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  2. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  3. Replies: 6
    Last Post: 07-28-2011, 04:07 AM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 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