Results 1 to 15 of 15
  1. #1
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Nov 2014
    Posts
    55

    Dashes disappearing until mouseover


    I am trying to import records to an existing table within Access from Excel. All of my column fields match from Excel to Access, and the data imports fine. Within Access I have the tbl design set to input mask the SSNs so it does not drop leading zeros. This is important because of the SSN being unique to the student. The strange thing is when i import these SSNs it drops out the dashes until the mouse is placed over the the individual SSN. Only when it is clicked will the dashes show back up. While it is more of an annoyance, I need it with the dashes so when i print reports it displays properly. Any ideas?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    So the Excel data has the dashes?

    I just tested an import of SSN from Excel and viewing on a form with and without input mask, not getting the behavior you describe.
    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
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Nov 2014
    Posts
    55
    The data is already imported. At face value it looks like this... 123456789 but when you mouse over or click in the individual field it changes to this 123-45-6789 without any input from me... when you exit the field it reverts.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    So dashes are not imported with the data. I tested this situation as well, still don't get the behavior. Dashes are always displayed on form.

    Did you use the input mask dialog to set up the mask?

    If you want to provide db without SSN data, follow instructions at bottom of my post.
    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.

  5. #5
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    55
    Yes I used the input mask. Acting strange.

  6. #6
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    55
    Click image for larger version. 

Name:	Example.jpg 
Views:	7 
Size:	157.2 KB 
ID:	19596 Here is how I was using it.

  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,930
    Can try deleting and recreating the textbox.
    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
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    55
    Quote Originally Posted by June7 View Post
    Can try deleting and recreating the textbox.

    Not with 800+ worth of records

  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,930
    Why would existing records prevent rebuilding the textbox? Build a whole new form if that's what it takes. Corruption of objects and controls is not unknown.
    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.

  10. #10
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    55
    Quote Originally Posted by June7 View Post
    Why would existing records prevent rebuilding the textbox? Build a whole new form if that's what it takes. Corruption of objects and controls is not unknown.

    This is not a form. This is within the tbl itself that the behavior is occurring.

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I still did not see this behavior in the table.

    Remove the input mask setting from the table.

    Build form and textbox with input mask.

    What happens?

    I seldom set properties in table that can be set in controls on form.
    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.

  12. #12
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    55
    I can do that. But the problem I have is when I import into the tbl via excel. I get a new set of records to input every week and its much easier to import the records as opposed to entering in via a form. I will try the form method for now.

  13. #13
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    55
    With the input mask on the form it formulates properly and behaves normally. I think there will be too many records to process though. Whereas the import function would be better suited. Back to the drawing board i guess.

  14. #14
    armyofdux is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2014
    Posts
    55
    I found the problem. The formatting of the SSN field in the excel file was set to Social Security Number. Thus it was input masking itself prior to importation into Access. These Socials derived from a text only format so the input masks were adding the dashes in as opposed to it being real-time text.

  15. #15
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Import or data entry, I would not be concerned with formatting in table because users should not work directly with tables and queries, only forms and reports. And when I (developer) look at tables/queries I prefer to see the data in its natural state, not masked with formats or lookups.

    I tried import with the Excel SSN formatting and still could not replicate the behavior. Oh well, glad you got it working.
    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. Dashes in phone numbers and zip codes
    By JMack in forum Access
    Replies: 8
    Last Post: 11-18-2013, 01:56 PM
  2. Fields as buttons with mouseover
    By Ruegen in forum Forms
    Replies: 8
    Last Post: 08-13-2013, 11:21 PM
  3. Replies: 3
    Last Post: 07-31-2013, 08:30 AM
  4. How to Create a Autonumber with dashes
    By sylviar in forum Access
    Replies: 5
    Last Post: 05-09-2013, 09:08 AM
  5. Sorting by Letters and then numbers with dashes
    By Analogkid in forum Queries
    Replies: 8
    Last Post: 04-29-2013, 05:05 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