Results 1 to 12 of 12
  1. #1
    marisacoul is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    27

    Exclamation Pop-Up Form for Contact Info/Address

    Hi,

    I'm creating a database for my company and would like to restrict the entries for the address fields. I want the user to click on any cell in the address column and have a dialog (see below) pop up prompting them to input very specific info, then I'd like that info to appear in the clicked cell in any one of the two formats:

    Scott Brown
    10 Mill St.
    Cityville
    ON
    L6H 12J
    Canada
    555-222-3111
    scott.brown@notrealemail.com

    OR

    Scott Brown, 10 Mill St., Cityville, ON, L6H 12J, Canada, 555-222-3111, scott.brown@notrealemail.com

    I have already created the pop up form (see below). Please help! I am very inexperienced at this sort of stuff

    Marisa

    Click image for larger version. 

Name:	pop up.png 
Views:	21 
Size:	47.8 KB 
ID:	29014

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    If you are looking at a continuous list,the following code will open the pop form:
    docmd.openForm "frmAddr",,,"[ClientID]=" & me.id

    the form will have fields locked except the address.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    marisacoul,

    Welcome to the forum.
    Do you have a clear description of the business/processes your proposed database will support?
    Just suggesting you get your analysis and design under control before jumping too quickly into physical database. You can make some sample prototype forms/tables etc to confirm your analysis and to get feedback from those requesting your project.

    It appears you may have an Excel background, and I assure you that relational database is a different animal.

    Good luck with your project.

  4. #4
    marisacoul is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    27
    Quote Originally Posted by ranman256 View Post
    If you are looking at a continuous list,the following code will open the pop form:
    docmd.openForm "frmAddr",,,"[ClientID]=" & me.id

    the form will have fields locked except the address.
    Okay... where do I put this code? Keep in mind I'm veeeery new to this. And I don't really want all the fields locked... I'd like the user to be able to fill in all the boxes as shown in the image, and for them to be separated by commas, if possible.

    Thanks for your help!

    Marisa

  5. #5
    marisacoul is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    27
    Quote Originally Posted by orange View Post
    marisacoul,

    Welcome to the forum.
    Do you have a clear description of the business/processes your proposed database will support?
    Just suggesting you get your analysis and design under control before jumping too quickly into physical database. You can make some sample prototype forms/tables etc to confirm your analysis and to get feedback from those requesting your project.

    It appears you may have an Excel background, and I assure you that relational database is a different animal.

    Good luck with your project.
    Hi, yes, it seems like a big undertaking but the database is actually very simple... just a few columns with attachments, dates, addresses and contact info, etc. It's almost finished except for these dialog boxes. The address boxes for our previous database (excel) were very messy so I'd like something standardized if possible.

    Marisa

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  7. #7
    Micron is online now Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Being new, one tends to use phrases that confuse the rest of us (OK, maybe just me) because Access doesn't have "cells". Does this I want the user to click on any cell in the address column mean you are allowing users to work directly in tables? This is not advised.
    Does this I'd like that info to appear in the clicked cell mean that you want all this info
    Scott Brown
    10 Mill St.
    Cityville
    ON
    L6H 12J
    Canada
    555-222-3111
    scott.brown@notrealemail.com
    in one "cell"? Again, definitely not advised if I understand the connotation of "cell".
    Being entirely new, you are poised to cause more grief for yourself if you don't get some background in relational databases. I liken it to a 12 year old driving a car. He/she has enough information to embark on such an endeavour, but the outcome is not going to be pretty.
    We can provide you with lots of links if you're open to doing some homework.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  8. #8
    marisacoul is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    27
    Quote Originally Posted by orange View Post
    Marisa,



    Can you show us your table(s) design?
    Here you go!

    Click image for larger version. 

Name:	Database screencap 1.png 
Views:	16 
Size:	72.0 KB 
ID:	29017Click image for larger version. 

Name:	Database screencap 2.png 
Views:	17 
Size:	78.2 KB 
ID:	29016

    Marisa

  9. #9
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Marisa,

    I recommend you review some of the links here. Micron has offered good advice. Refresh some of the relational database concepts.

    good luck.

  10. #10
    marisacoul is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jun 2017
    Posts
    27
    Quote Originally Posted by Micron View Post
    Being new, one tends to use phrases that confuse the rest of us (OK, maybe just me) because Access doesn't have "cells". Does this I want the user to click on any cell in the address column mean you are allowing users to work directly in tables? This is not advised.
    Does this I'd like that info to appear in the clicked cell mean that you want all this info
    in one "cell"? Again, definitely not advised if I understand the connotation of "cell".
    Being entirely new, you are poised to cause more grief for yourself if you don't get some background in relational databases. I liken it to a 12 year old driving a car. He/she has enough information to embark on such an endeavour, but the outcome is not going to be pretty.
    We can provide you with lots of links if you're open to doing some homework.
    Hi there,

    My apologies for the confusion. I'm still thinking in terms of Excel. I don't think I'll have them working directly into the spreadsheet, maybe something like this...

    Click image for larger version. 

Name:	Database form.png 
Views:	16 
Size:	95.3 KB 
ID:	29020

    But still I'd like inputting the addresses and contact info to be more standardized so that people don't, for example, forget to put in a phone number or something. I know I could put address 1, country, province, etc. into different columns but I was trying to simplify it/reduce scrolling... can we input the data into the form and have it show up as a string (separated by commas)? Would it require a lot of reading to figure this out?

    Marisa

  11. #11
    Micron is online now Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    I don't think I'll have them working directly into the spreadsheet
    I didn't say spreadsheet, I said "tables".
    I know I could put address 1, country, province, etc. into different columns but I was trying to simplify it/reduce scrolling..
    And so you should put things into separate fields - it is standard practice for several very good reasons. As for limiting what people can enter into tables, that is normal practice, but there are right ways to do this.
    can we input the data into the form and have it show up as a string (separated by commas)?
    You certainly can, but respectfully, I doubt you will be able to present a valid case for doing this. In all my years of dealing with Access, I have only encountered one case where this was necessary by design. I can't speak for anyone else, but I won't help you make things much more difficult for you than necessary. I say this because you seem bent on doing things that you will regret later on. Repeating: forget what you know about Excel - it will only lead you down the wrong path.

    If you demonstrate a willingness to expand your rudimentary knowledge, then I'm sure we'll all be willing to help. But what may be worth noting is that many of us (me at least) won't teach you how to do bad things just because you want to do it and we know how - especially if it seems you aren't receptive to learning proper design fundamentals.

    I have my own favourite link list which you can consider (or not) along with what Orange posted:
    Normalization is paramount. Diagramming maybe not so much for some people.

    Normalization Parts I, II, III, IV, and V
    http://rogersaccessblog.blogspot.ca/...on-part-i.html
    and/or
    http://holowczak.com/database-normalization/

    Entity-Relationship Diagramming: Part I, II, III and IV
    http://rogersaccessblog.blogspot.ca/...ng-part-i.html

    How do I Create an Application in Microsoft Access?
    http://rogersaccessblog.blogspot.ca/...cation-in.html

    Important for success:
    One source about how to name things - http://access.mvps.org/access/general/gen0012.htm
    What not to use in names - http://allenbrowne.com/AppIssueBadWord.html
    About Auto Numbers
    - http://www.utteraccess.com/wiki/Autonumbers
    - http://access.mvps.org/access/general/gen0025.htm

    The evils of lookup fields - http://access.mvps.org/access/lookupfields.htm
    Table and PK design tips - http://www.fmsinc.com/free/newtips/primarykey.asp
    About calculated table fields - http://allenbrowne.com/casu-14.html
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  12. #12
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Marisa,

    As I read your posts, you are confusing data presentation with data storage. These are different concepts.
    Get the storage structure/design under control, then work on the presentation/data entry mechanisms.

    You have been provided with many well tested links.

    Good luck with you project..

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

Similar Threads

  1. Replies: 4
    Last Post: 01-06-2018, 03:26 PM
  2. Replies: 8
    Last Post: 01-23-2016, 06:47 PM
  3. Replies: 12
    Last Post: 04-16-2015, 04:44 PM
  4. Replies: 2
    Last Post: 08-22-2013, 12:02 AM
  5. Adding additional info to a hyperlink address
    By Greyhound in forum Access
    Replies: 4
    Last Post: 07-02-2012, 02:36 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