Results 1 to 2 of 2
  1. #1
    mpaulbattle is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    Aug 2013
    Location
    Houston
    Posts
    46

    How to pull value from a combo box to a text field using an expression

    I have a form where the combo box list the server name and number which pulls from the tblservers (not sure this is relevant)

    ID | ServerName
    1 | s1
    2 | s2
    3 | s3


    etc...
    The combobox shows s1, s2, s3, etc.

    However,
    I have written an expression to create a link in a text field to the correct server page. the only problem is, it is pulling the ID number and not the server name.

    =IIf([JobServerID_FK]<>"","http://" & [JobServerID_FK] & ":" & [TPNumber] & "/mobiledoc/ScriptServlet","No Server")

    http://5:9064/mobiledoc/ScriptServlet

    I need to see s1, s2, or s3 where the 5 is showing

    SORRY HIT THE POST BUTTON PREMATURELY...
    Do I need to add the server name to my query that the form is pulling from?

  2. #2
    mpaulbattle is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    Aug 2013
    Location
    Houston
    Posts
    46
    Figured it out. Added ServerName to query

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

Similar Threads

  1. Combo Box A OR Combo Box B to pull up a record
    By darth.pathos in forum Forms
    Replies: 3
    Last Post: 06-06-2013, 01:31 PM
  2. Replies: 2
    Last Post: 08-16-2012, 10:02 PM
  3. Replies: 2
    Last Post: 05-30-2012, 09:09 AM
  4. Width of combo box pull-down
    By VirgilMachine in forum Forms
    Replies: 3
    Last Post: 11-19-2011, 10:34 AM
  5. Replies: 0
    Last Post: 12-19-2006, 09:44 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 - Senior Forums