Results 1 to 3 of 3
  1. #1
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528

    text box on a form

    Hello Guys
    I have a text box on a form based on a field in a table city


    When you open a form field appears the city and the number is not text
    Can I do to delete the primary key for the table of the city
    Or what to do
    Thank you
    Click image for larger version. 

Name:	sw2sw2sw2.JPG 
Views:	10 
Size:	36.3 KB 
ID:	15606

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Options:

    1. multi-column combobox - this is lookup with alias
    http://www.datapigtechnologies.com/f...combobox3.html

    2. Include City table in form RecordSource with join type "Include all records from tbStudents and only those from City that match". Bind textbox to Stiy field set it Locked Yes and TabStop No

    3. Eliminate the ID primary key from City table, make City field in tbStudent a text type and save the actual city name

    4. DLookup
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Thank you very much
    Oh wonderful teachers
    Include City table in form RecordSource with join type "Include all records from tbStudents and only those from City that match". Bind textbox to Stiy field set it Locked Yes and TabStop No

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

Similar Threads

  1. Replies: 9
    Last Post: 03-22-2013, 06:37 AM
  2. Replies: 3
    Last Post: 12-22-2012, 05:33 PM
  3. Replies: 7
    Last Post: 10-17-2012, 11:59 AM
  4. Replies: 2
    Last Post: 03-01-2012, 12:21 PM
  5. Replies: 15
    Last Post: 09-18-2010, 01:19 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