Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 32
  1. #16
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901

    It is hard to help without knowing more details about your table structure. How are the tables su_file_checkou, su_file and su_box_location related?

  2. #17
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Hey sorry dude. Got there in the end..........asleep at the wheel today................. no need to reply....cheers.

    Oh and apologies for my lack of description! I guess by the time I get to this forum I am frustrated and inclined to abbreviate which probably isn't that considerate!

  3. #18
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    Glad to hear that you got it worked out. Good luck with your project.

  4. #19
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Hey thanks! It's nearly finished now - or so I keep thinking!

    Boss wanted me to do some stuff that required unforseen VBA which I haven't much of a clue about.

    Seems you can't get away from it though!

    Thanks again!

  5. #20
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome. I find that a database never seems to ever be "done". Once users start using it, they always want to have the database do more.

  6. #21
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Hello again.

    Was just wondering. You know how I have the file table (1) and the checkout table (many) when in fact any instance of checkout could involve multiple instances of file. Should I have an intermediary table to adhere to normalization and are there any pitfalls to leaving it as it is?

    Thank ya!

    Oh and instead of having a checkout table, I now have an events table of which checkout is one of several events - so should be fun trying to make your code fit my new and exiting purposes!

    lol

  7. #22
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You know how I have the file table (1) and the checkout table (many) when in fact any instance of checkout could involve multiple instances of file. Should I have an intermediary table to adhere to normalization and are there any pitfalls to leaving it as it is?
    Are you basically saying that you have an event and many files can be associated with the event and a file can also appear in many events? If so, then you have a many-to-many relationship which requires a junction table (I assume that is what you mean by intermediary table).

    tblEvents
    -pkEventID primary key, autonumber
    -dteEvent (date of event)
    -fkEventTypeID foreign key to tblEventType (check out, check in etc.)


    tblFiles
    -pkFileID primary key, autonumber
    -txtFile

    tblEventFiles (junction table)
    -pkEventFileID primary key, autonumber
    -fkEventID foreign key to tblEvents
    -fkFileID foreign key to tblFiles

  8. #23
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    That's pretty on the nose with the old assumptions there. It actually amazes me how accurate your assumptions are inclined to be - considering I don't always give enough information.

    Thanks a billion.

  9. #24
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    That really was a nice piece of code you originally gave me! I reckon I will be using it quite a bit! (don't worry - I'll stick your name in the credits)

  10. #25
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome. Good luck with your project.

  11. #26
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Just found a bug! and thought you could help since you are intimately acquainted with this part of my project.

    Previously you helped me with code for checking files out by box and you put in a bit where the files were only checked out if they were not checked out before.

    I wrote a little update query to checkback all of the files in the box - but I just realised there is a big problem as I would be even checking back files that perhaps shouldn't be checked back yet as they may have been checked out by a whole other person. I have attached my new db schema for a bit of clarity.

    I have now changed the file checkout table to file actions as I am using it for many different actions now.

    If it's too much hassle, is okay. You've helped me loads already and I really appreciate it.
    Attached Files Attached Files

  12. #27
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    Hmmm.......maybe can use the actionDate and the actionReason as the unique identifiers........unless your wise self has a better idea, I shall run with that!! ;-)

  13. #28
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    If you know the person who checked out the items, all you would need to do is find those items they have checked out and update those records or a portion of those records. In other words, filter by the person returning the items. You might use a form that has a combo box based on the person followed by a multi-select list box of items they have checked out. You could then select the one or more items from that list to update.

  14. #29
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    OOhhhh....thanks for your insight!

    That'll be something to chew on for the afternoon!

    Cheers!

  15. #30
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    What's a multi-select list box? Much too them?

Page 2 of 3 FirstFirst 123 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. INSERT query: insert new data only
    By drh in forum Access
    Replies: 2
    Last Post: 04-04-2014, 05:31 PM
  2. Insert into
    By glasgowlad1999 in forum Access
    Replies: 2
    Last Post: 10-14-2011, 02:38 PM
  3. New insert row
    By khparhami in forum Access
    Replies: 5
    Last Post: 09-06-2010, 10:37 AM
  4. SQL Insert into
    By jamin14 in forum Programming
    Replies: 15
    Last Post: 04-01-2010, 12:35 AM
  5. help with insert
    By jamie in forum Access
    Replies: 1
    Last Post: 11-16-2009, 06:02 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