Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    pimpzter is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    22

    Angry Copying txt from 1 textbox to another OR if value formatted a certain way delete the


    On F_Schedule_review_wide there are text boxes called Task_Code and one named WO_Description. Everything works as it should except when the task_code value format is xxxxxxxx-xx-xx (can be numbers or letters). In most cases it is xxxxxxxx-xx. When task_code value format equals xxxxxxxx-xx-xx then I need wo_description to be blank otherwise put what it normally would which is control source wo_description. Any help is appreciated in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    You could check the length of the value.

    Is this for a report output? In ControlSource of textbox:

    =IIf(Length(task_code)>11,Null,WO_Description)
    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
    pimpzter is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    22
    Thank you for the reply. Where would this go ? I tried putting it in the text Box but not the output is #Name? on all the WO_Description Boxes. This is for a Form which pulls data from different places and basically... output in the form.


    Quote Originally Posted by June7 View Post
    You could check the length of the value.

    Is this for a report output? In ControlSource of textbox:

    =IIf(Length(task_code)>11,Null,WO_Description)

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Are task_code and WO_Description your exact field names? Are they both included in the form's RecordSource?
    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
    pimpzter is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    22
    For some reason this file is protected from getting into design mode to see all forms and queries. Holding shift as you open it dont work neither does alt f11 or ctrl g or any of the other shortcuts I have been told to try. Not sure of a way aroud that either. The part that I do have access to get into is this particular form you can right click and hit form design. The one box that pulls the actual Work Order Description has a control source of WO_Description. The same goes for Task_Code. I hope this answers the question you asked or gives you a better idea of what im seeing. If it would help I could email you this database.


    Quote Originally Posted by June7 View Post
    Are task_code and WO_Description your exact field names? Are they both included in the form's RecordSource?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    From what you describe the expression should work but should be the ControlSource for the WO_Description textbox. Can attach project to post. 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.

  7. #7
    pimpzter is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    22
    I tried again to put your code as the ControlSource for the WO_Description text box but got the same results. I compacted and zipped the database and it is 6mb


    Quote Originally Posted by June7 View Post
    From what you describe the expression should work but should be the ControlSource for the WO_Description textbox. Can attach project to post. Follow instructions at bottom of my post.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Can upload to a fileshare site such as box.com and post link to the file.

    Or extract just the objects relevant to the issue into another db.
    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.

  9. #9
    pimpzter is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    22
    I have created a box.com account and the link is
    http://www.box.com/s/aad23726ec40e1882e3a


    Quote Originally Posted by June7 View Post
    Can upload to a fileshare site such as box.com and post link to the file.

    Or extract just the objects relevant to the issue into another db.

  10. #10
    pimpzter is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    22
    Im sure it would be helpful if I told you where the form was.

    Search Engines
    Search P3e schedule
    T Sschedule Review
    From the top right green box select any start date schedule
    Then click open selected schedule
    Click Wide View
    Right Click to get to form design and now you are where I am

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Little problem here. When I open the db it wants to search for some referenced files. I can see the Navigation Pane while this search is active. I cancel search (two of them) and even with holding down the shift key, a form opens and the Navigation Pane is not visible and can't seem to get it open. I am using Access 2010, not 2003 but I should still be able to view the db objects if I can get past the automation. Never encountered this before. Need a clue.

    I click the Search P3e Schedule button but nothing happens.
    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
    pimpzter is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    22
    hmmm... when you click the search p3e button its prolly pulling data from tables.. but you should still get to the next form. If I knew of a way to get into design mode to view all the tables and forms you could just clock on the one I have a question on. another roadblack... any suggestions on what i can do to help ?

    Quote Originally Posted by June7 View Post
    Little problem here. When I open the db it wants to search for some referenced files. I can see the Navigation Pane while this search is active. I cancel search (two of them) and even with holding down the shift key, a form opens and the Navigation Pane is not visible and can't seem to get it open. I am using Access 2010, not 2003 but I should still be able to view the db objects if I can get past the automation. Never encountered this before. Need a clue.

    I click the Search P3e Schedule button but nothing happens.

  13. #13
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Why is the form opening automatically and the project window (Navigation pane in 2010) hidden? Even when the form does open, If I try to switch to design view, Access closes. Also, have to run the file from C: drive. Can you eliminate the code causing all this? Is there an Autoexec macro?

    If you cannot alter behavior in this project, might have to build another project that imports all the objects and then selectively import code (macros and VBA). Maybe the code that causes this can be eliminated this way.
    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.

  14. #14
    pimpzter is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    22
    A little background. The guy who made this project no longer works here. Now they have tasked me with changing a few things. I also have the same issue of trying to get to the design mode where I can view all tables, queries, and forms therefore I cannt manage to access any of the code. I know he has all his databases set to run from C: because when everyone runs them from a shared drive they can get corrupt. suggestions ?

    Quote Originally Posted by June7 View Post
    Why is the form opening automatically and the project window (Navigation pane in 2010) hidden? Even when the form does open, If I try to switch to design view, Access closes. Also, have to run the file from C: drive. Can you eliminate the code causing all this? Is there an Autoexec macro?

    If you cannot alter behavior in this project, might have to build another project that imports all the objects and then selectively import code (macros and VBA). Maybe the code that causes this can be eliminated this way.

  15. #15
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Try the import to a new project.

    This is not a split database?
    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.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Query to Formatted Excel Sheet
    By pbaker36 in forum Programming
    Replies: 4
    Last Post: 04-17-2012, 03:28 PM
  2. Date Entry in formatted field
    By gg80 in forum Forms
    Replies: 2
    Last Post: 02-10-2012, 06:35 PM
  3. Exporting to formatted Excel file
    By Xerin in forum Access
    Replies: 4
    Last Post: 10-21-2011, 03:33 PM
  4. Formatted Excel Output
    By jerryrs in forum Import/Export Data
    Replies: 6
    Last Post: 02-26-2011, 11:58 PM
  5. Displaying data formatted
    By Zoroxeus in forum Forms
    Replies: 0
    Last Post: 03-14-2006, 09:45 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