Results 1 to 9 of 9
  1. #1
    Gealeks is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2013
    Posts
    5

    Combo box is recognized as digit format

    Hi! i created combo box in a Form taking data from a related table. But it doesn't let to choose the data from drop-down list saying that the entry doesn't match to the field format, meaning that i try to put text data into digit format field. I checked several times, the linked source table has text format. But the the combo box in the Form behaves as a digital format. How to fix it?

  2. #2
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199
    best way is to relate the combo with a query.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    What is data type of the field you want to save data into? Probably number.

    What is the type of data selected in the combobox? Probably alpha text.

    What is the RowSource of the combobox?

    Here is a tutorial of what neo described http://www.datapigtechnologies.com/f...combobox3.html
    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.

  4. #4
    Gealeks is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2013
    Posts
    5
    Hi June7. Thanks for quick respond! I'm afarid the type of the combobox is number (while type of the related table column is text), but I haven't found where I can change the type of combobox. So that's the question - how to change its type?
    Entered data is text (it should stay a text).
    The Raw source of the combobox is Querry.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    Did you review the tutorial? The last example is what you want to do.
    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.

  6. #6
    Gealeks is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2013
    Posts
    5
    Hi June7. Thanks Yes I did and recieved another problem All entries in the column now change depending on the data entered in any raw.
    Click image for larger version. 

Name:	data entry repeats through the whole column.png 
Views:	15 
Size:	44.6 KB 
ID:	14491

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    That's because it is an UNBOUND control. Set the combobox ControlSource property to the field you want data saved in.
    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.

  8. #8
    Gealeks is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2013
    Posts
    5
    Hi June7. Sory for boring questions, but after setting the Control Source to a proper field, system doesn't let to put text data into cell, while the related column has certanly the text format. How it can be solved?
    Click image for larger version. 

Name:	Numeric field.png 
Views:	7 
Size:	47.8 KB 
ID:	14540

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,896
    Use multi-column combobox http://datapigtechnologies.com/flash...combobox3.html

    The combobox BoundColumn will be the column with the ID and the ID will be saved to field set in ControlSource. The ID column will be hidden and the company name column will display for users to choose.
    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.

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

Similar Threads

  1. Loop or Array not recognized
    By dvgef2 in forum Forms
    Replies: 6
    Last Post: 05-31-2013, 08:37 AM
  2. Replies: 5
    Last Post: 08-23-2012, 09:33 AM
  3. Replies: 14
    Last Post: 07-19-2011, 04:00 PM
  4. display single digit
    By appiades in forum Access
    Replies: 2
    Last Post: 07-05-2010, 05:36 PM
  5. New Record not recognized in my queries
    By Kimmcdt in forum Queries
    Replies: 6
    Last Post: 01-16-2010, 10:26 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