Results 1 to 2 of 2
  1. #1
    OldBloke is offline Novice
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    1

    Sub Form Data Entry

    Hi All

    I have been playing around with a data display data entry form. What I need it to do is show the details of the job, job report, staff, time on site and so on with the agreed price for the visit and give the data entry option to change to a different price.

    Hope that was clear (ish).



    So in other words if I quoted you $20.00 to clean your stove each week and for some reason on the third week I left the lid off the cleaning can in your stove, so I decided to do this week free for you, I want to enter $0.00 in my subform for only that week.

    Now the issue is not the subform itself (I think), the issue seems to relate to the underlying query.

    The underlying query is being forced on me by the relational data model.

    If I use qryLabour by itself I can alter field sell price all I like - which is exactly what I want to do. However Agreed Price is not contained within this query and it is not possible to add Agreed Price to this query. So whilst I am able to enter a sell price I cannot see the Agreed or Quoted price. This is a major issue as your oven maybe $20 and your neighbours may be $35 as it is a different model etc.

    My SQL looks like:

    SELECT DISTINCT qryJobLabour.JobID, qryJobLabour.JobStaff, qryJobLabour.JRNumber, qryJobLabour.JobType, qryJobLabour.JRDate, qryJobLabour.StartTime, qryJobLabour.EndTime, qryJobLabour.TravelTime, qryJobLabour.WorkedHours, qryJobLabour.WorkCost, qryJobsPrice.AgreedPrice, qryJobLabour.Sell, qryJobLabour.AdditionalWork
    FROM qryJobLabour INNER JOIN qryJobsPrice ON qryJobLabour.JobID = qryJobsPrice.Job
    WITH OWNERACCESS OPTION;

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    I would say that perhaps you are accidentally making it more complicated than need be. A Distinct query will not be updateable as you have probably found.

    It is common for any sale ( or service ) to have multiple details - and this is a classic parent/child table relationship. Make your main form sourced on the parent. Make your subform sourced on the child - - and when you insert it the wizard will help set up the cross referencing field.

    Then when you go to a customer....all their details will display and you can add/edit those details freely.

    Hope this helps.

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

Similar Threads

  1. Validating data entry in a form
    By bdhFS in forum Programming
    Replies: 1
    Last Post: 05-18-2010, 03:09 PM
  2. Creating data entry form
    By ksukat in forum Forms
    Replies: 3
    Last Post: 03-11-2010, 04:55 PM
  3. Can't get new field to show in my data entry form
    By Suzie in forum Database Design
    Replies: 19
    Last Post: 12-21-2009, 03:48 PM
  4. Form Data Entry Problem?
    By corystemp in forum Database Design
    Replies: 1
    Last Post: 03-21-2009, 02:29 PM
  5. Run report or sub form during data entry
    By wasim_sono in forum Programming
    Replies: 0
    Last Post: 03-09-2006, 05:40 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