Results 1 to 13 of 13
  1. #1
    hursan1710 is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2016
    Posts
    10

    How To remove a defaulted message in access database


    hi, I am using the attached generic access database, while it does what i want there is one step i want to take off, once an order is created the user has to specify the shipping information and pick a "ship via".. from the drop down list, if one is not selected the system will generating a message asking to select one, how can i remove or put a default entry such as FedEx so the user does not have to pick a "ship via" every time an order is created. i cant upload the test database to this post but bellow you will find the link to my Google Drive share file.

    https://drive.google.com/file/d/0B0e...ew?usp=sharing

    thanks in advance...Click image for larger version. 

Name:	Screenshot.jpg 
Views:	15 
Size:	124.6 KB 
ID:	26409

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    set the DEFAULT VALUE of the combo box= 'FexEx'

  3. #3
    hursan1710 is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2016
    Posts
    10
    i tried, but will not work, i can set the default for the other tap Payment type and date.

  4. #4
    hursan1710 is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2016
    Posts
    10
    i can set a Ship Date to Default=Date() but will not work for the Ship Via.

  5. #5
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Go into design view. Right click the button that makes it happen and click view code. Paste the code here.

  6. #6
    hursan1710 is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2016
    Posts
    10
    Quote Originally Posted by Homegrownandy View Post
    Go into design view. Right click the button that makes it happen and click view code. Paste the code here.

    Hi,

    There is no code, the Control Source is an Expresion builder, please see screenshot attached.
    Attached Thumbnails Attached Thumbnails Screenshoot 1.png   Screenshoot 2.png   Screenshoot 3.png   Screenshoot 4.png   Screenshoot 5.png  


  7. #7
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Hey,

    You've shows the properties for the combo box. But if I'm correct, this will happen after you press a button? Its the button that the code will be attached to.

  8. #8
    hursan1710 is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2016
    Posts
    10
    Quote Originally Posted by Homegrownandy View Post
    Hey,

    You've shows the properties for the combo box. But if I'm correct, this will happen after you press a button? Its the button that the code will be attached to.
    Hi, I am sorry, those are the properties of the Combo Box, i apologizes, i misread the message, when i press Invoice Order, an error is generated asking the user to select "Ship Via", that button does not have a code but a Macro, here is the screenshot.

    if too small, here is a link to download the screenshot

    https://drive.google.com/file/d/0B0e...ew?usp=sharing
    Attached Thumbnails Attached Thumbnails Macro Screenshoot.jpg  

  9. #9
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Sorry for the double post, just wanted to make sure you've seen this. It will be on the "event" tab of whatever is making it happen.. If it happens after you press a button, it will be on the event tab of the button.

  10. #10
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I cant see anything obvious there, If you can post your database here without any sensitive information ill take a look.

  11. #11
    hursan1710 is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2016
    Posts
    10
    hey,

    this link will take you to my sharebale database, there is not sensitive information
    https://drive.google.com/file/d/0B0e...ew?usp=sharing

    to get to the error, open the database, click ID order 8 under Active ORders, if you click Invoice order you will get the error.

    thanks in advance

  12. #12
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I can't open your database (work server), but to set a combobox value:

    After the order has been created, find the right event (AfterUpdate?) and set this in an Event Procedure: Me!shipviacomboboxname = "Ship Via" - that is presuming that it is the first column in the Row Source.

  13. #13
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I cant actually see it on there. I cant access developer tab or design view. I cant even see how its secured. :/

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

Similar Threads

  1. Replies: 6
    Last Post: 08-08-2016, 06:42 AM
  2. Replies: 6
    Last Post: 02-06-2015, 04:10 PM
  3. Replies: 9
    Last Post: 02-26-2013, 10:48 AM
  4. Replies: 2
    Last Post: 12-31-2012, 08:25 AM
  5. remove Macro Warning message
    By Jerseynjphillypa in forum Programming
    Replies: 3
    Last Post: 05-09-2012, 10:22 AM

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