Results 1 to 4 of 4
  1. #1
    lorenb is offline Novice
    Windows 7 Access 2003
    Join Date
    Oct 2010
    Posts
    2

    array of DateTime in design view

    Hi,


    I'm using the design view in order to construct my DB.
    I would like to have a column which will store several DateTime data types (actually an array would have been good). How can it be done??

    Thanks,

  2. #2
    HiTechCoach's Avatar
    HiTechCoach is offline MS MVP - Access Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Oklahoma, USA
    Posts
    705
    Quote Originally Posted by lorenb View Post
    Hi,
    I'm using the design view in order to construct my DB.
    I would like to have a column which will store several DateTime data types (actually an array would have been good). How can it be done??

    Thanks,
    I think what you want is a child/sub table where each date is stored in a separate record.
    Boyd Trimmell aka Hitechcoach
    Database Architect and Problem Solver
    Microsoft MVP - Access Expert
    25+ years specializing in Accounting, Inventory, and CRM systems
    "If technology doesn't work for people, then it doesn't work."

  3. #3
    lorenb is offline Novice
    Windows 7 Access 2003
    Join Date
    Oct 2010
    Posts
    2
    Thanks HiTechCoach,
    Please let me get elaborate a bit. I have a table where I store all my selling, where I have a column of repayment date. Until now, no problems as all customers payed via credit card in one payment. Now, I want also to enable paying via Checks (several payments for 1 product. Max 3 payment). Is your solution consist of dynamically building a table of dates and store all dates there? This will create a lot of tables even for customers which pay in 1 payment. Is it "OK", if I just add to my existing table 2 columns say: "Payment 2", "Payment 3"?

    Thanks

  4. #4
    HiTechCoach's Avatar
    HiTechCoach is offline MS MVP - Access Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Oklahoma, USA
    Posts
    705
    Quote Originally Posted by lorenb View Post
    Is your solution consist of dynamically building a table of dates and store all dates there?
    I am not suggesting anything dynamic or storing q list of possible dates to pick from.

    I use a date picker form.

    Quote Originally Posted by lorenb View Post
    This will create a lot of tables even for customers which pay in 1 payment. Is it "OK", if I just add to my existing table 2 columns say: "Payment 2", "Payment 3"?
    You only need to create ONE new table that holds all the payment related to the current table that already has the one date. You will need to move the data for the current one data to the new tabe. I owuld use an append query.

    Here is a very simple example where one payment is applied to only one invoice.


    Code:
    Table: tblPayments
    Fields
    PaymentID (autonumber- Primary Key)
    Payment_OrderID ( long - foreign key - links back to Invoices)
    PaymentDate (date/time)
    Payment Amount (currency)
    PaymentType (long - use a lookup table for check, Credit Card, etc)
    PaymentReferenceNumber  (text - store check number or CC number)
    Boyd Trimmell aka Hitechcoach
    Database Architect and Problem Solver
    Microsoft MVP - Access Expert
    25+ years specializing in Accounting, Inventory, and CRM systems
    "If technology doesn't work for people, then it doesn't work."

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

Similar Threads

  1. Disabling Design View
    By DonnyArt in forum Access
    Replies: 1
    Last Post: 06-29-2010, 08:08 AM
  2. System lag when in report design view
    By vCallNSPF in forum Access
    Replies: 5
    Last Post: 12-10-2009, 08:38 PM
  3. Can you disable design view?
    By nkenney in forum Forms
    Replies: 1
    Last Post: 04-23-2009, 05:08 AM
  4. Defaulting to Design View
    By cgolds in forum Access
    Replies: 0
    Last Post: 06-05-2007, 02:50 PM
  5. Disabling shift for design view
    By geek in forum Access
    Replies: 1
    Last Post: 12-09-2005, 11:38 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