Results 1 to 4 of 4
  1. #1
    ToolJob is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    5

    Wink Product No. Text Box control and 12-001

    HI I have a Text Box control that is used to enter a product number into the database. When I type 12-001 (format of the number), 12-001 should be plugged into the Access 2010 database. Instead the product number is


    being treated as an expression. The result 11 is being plugged into the database incorrectly. How can I disable a text box control to stop this from happening?

    Thx

    TJ

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Never encountered this and can't replicate the issue. If you want to provide db for analysis, follow instructions at bottom of my post. Identify the form involved.
    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
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Is the Textbox a Bound one? If you select it and go to Properties - Data does the Control Source Property have the Name of a Field in it?

    In order for a product 'number' to use the Format of 12-001, the Field has to be defined as a Text Datatype, not a Number Datatype; the dash/hyphen in the 'number' requires this.

    It sounds as if your Field is either Unbound or the Field it's Bound to is defined as a Number.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I tested entering 12-001 into bound (number and text types) and unbound textbox. Either it errors (bound number type) or accepts the input. Can't replicate issue, no idea what is happening.
    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. Replies: 3
    Last Post: 02-26-2013, 05:07 AM
  2. Replies: 12
    Last Post: 12-11-2012, 09:27 AM
  3. Control within Static Text
    By mcrow in forum Reports
    Replies: 3
    Last Post: 06-07-2012, 10:41 AM
  4. Text control to act like combo control
    By chris.williams in forum Programming
    Replies: 2
    Last Post: 11-11-2011, 10:12 PM
  5. IIF statement in control source of text box
    By LilMissAttack in forum Reports
    Replies: 11
    Last Post: 08-18-2011, 10:02 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