Results 1 to 4 of 4
  1. #1
    matt72 is offline Novice
    Windows 7 Access 2007
    Join Date
    Dec 2009
    Posts
    2

    Looking up values in Access 2007 for veterinary database

    Hi All



    I'm not too great with Access, but a few months back I created a small database for a veterinary practice (I've attached the relationships for some of the tables & the names of some tables have been changed for simplicity).

    At the moment, the three tables shown to the right of the attachment are not related to any of the other tables, and were just used as reference 'lists' - the user records the name of the drug/service/vaccination in the Patient Drugs/Patient Services/Patient Vaccination table, and checks the price in the corresponding list. The form for data entry uses subforms - Patients as a subform of Transactions, Patient Drugs/Patient Services/Patient Vaccination as a subform of Patients (these three are in datasheet view). Also, the lists do not contain all items to be used, only common ones and their normal price.

    However, looking up the lists has become a bit of a pain.

    I'll use the drugs list to describe what I'm trying to achieve -
    When the user types a drug name in the Patient Drugs table, the Price field in the same table should be set, using the value from the Drug List if the drug is recorded there.

    I've tried a few ways to do this with no luck, mainly because:
    -The drug price in 'Patient Drugs' may not be the same as in 'Drug List'
    -Not all drugs are recorded in the drug list (only common ones)
    -The prices must be stored with the patient and transaction to avoid past invoices being changed when the lists are updated.

    I'm not sure whether implementing this would need changes to table relationships or lookups or VBA coding, so any help would be much appreciated.

    Thanks in advance,
    Matt.


    (Vista/Win 7 & Access 2007)

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Sorry about the delay in responding Matt. Are you still working on this issue?

  3. #3
    matt72 is offline Novice
    Windows 7 Access 2007
    Join Date
    Dec 2009
    Posts
    2
    Hi RG, no I haven't figured it out, any help would be much appreciated

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It may take me some time to get familiar with your system. I noticed you have MultiField Primary keys. Those drive me nuts and I've generally found they were not needed. Most people I've helped just did it that way to keep them unique. There are (IMHO) better ways to do that. Any reason *not* to post your zipped up db? It would probably make it easier to assist with the solution but I would understand if you did not want to do that.

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

Similar Threads

  1. Replies: 6
    Last Post: 12-01-2009, 11:59 AM
  2. Replies: 0
    Last Post: 11-17-2009, 02:35 PM
  3. Replies: 32
    Last Post: 09-16-2009, 10:06 AM
  4. What Database is Open? (Access 2007)
    By jhrBanker in forum Access
    Replies: 3
    Last Post: 06-06-2009, 09:00 AM
  5. Replies: 0
    Last Post: 10-22-2007, 02:15 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