Results 1 to 3 of 3
  1. #1
    alarm_guy1 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    4

    Relationships Help Please

    Hi guys,

    Many many years ago i dabbled with a access and created a little database that had customer Table and Form and a customer order form.

    I seem to have forgotten a lot of what I picked up back then, I'm just starting a database for my mate who runs a cake business.

    I want it to be quite simple, my 2 hurdles are
    1, I want to have a form that has an ID field of 6 characters, when I type in a 6 character id I want it to populate various fields that contain relevant data from that customer. i.e. first name surname address etc, I just cant quite get there.

    2, Once completed I would like a button that when clicked asks you for a month and you input a month i.e. dec.
    then all clients that have an anniversary, birthday or other event in Dec will be displayed and then we could email each client with specific offers or reminders.

    I know that the customer ID needs to be unique and I need a one to many relationship,

    but have tried several times but cannot make it happen.

    any help greatly appreciated



    Keith

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    If you have only one table then your data structure is probably not normalized. If you expect repeat customers then you need a table of customers and table of orders (maybe another table for order details and maybe a table of products). Use form/subform arrangement. Main form bound to customers and subform bound to Orders. Go to an existing customer, or add new customer, on the main form and enter their order info in subform.

    Or

    Have main form bound to Orders and select customer in combobox, subform bound to OrderDetails. Enter products ordered in subform.

    1. An autonumber type field can accommodate generation of unique ID. Here is one way to filter form: http://datapigtechnologies.com/flash...tomfilter.html

    2. You have a lot to learn before tackling something this advanced. Review: https://www.accessforums.net/access/...ils-36702.html
    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
    alarm_guy1 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    4
    Thankyou for the prompt reply, I have now managed to sort out the first problem thankyou, now I just have to plough through setting everything as required.

    The 2nd problem is a way off yet but at least i have been pointed in the right direction for when i'm ready.

    once again many tanks

    Keith

    Quote Originally Posted by June7 View Post
    If you have only one table then your data structure is probably not normalized. If you expect repeat customers then you need a table of customers and table of orders (maybe another table for order details and maybe a table of products). Use form/subform arrangement. Main form bound to customers and subform bound to Orders. Go to an existing customer, or add new customer, on the main form and enter their order info in subform.

    Or

    Have main form bound to Orders and select customer in combobox, subform bound to OrderDetails. Enter products ordered in subform.

    1. An autonumber type field can accommodate generation of unique ID. Here is one way to filter form: http://datapigtechnologies.com/flash...tomfilter.html

    2. You have a lot to learn before tackling something this advanced. Review: https://www.accessforums.net/access/...ils-36702.html

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

Similar Threads

  1. Explicit Relationships and Implicit Relationships
    By Dazza666 in forum Database Design
    Replies: 2
    Last Post: 07-17-2013, 02:11 AM
  2. One-to-one and one-to-many relationships
    By blitz14 in forum Access
    Replies: 4
    Last Post: 02-08-2013, 04:55 PM
  3. Relationships
    By hithere in forum Database Design
    Replies: 1
    Last Post: 04-03-2012, 11:03 PM
  4. Relationships
    By bopsgtir in forum Database Design
    Replies: 1
    Last Post: 01-10-2011, 12:44 PM
  5. Relationships again
    By BarbT in forum Access
    Replies: 2
    Last Post: 11-09-2010, 04:12 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