Results 1 to 7 of 7
  1. #1
    shaztastic is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    14

    Return a subform value to a table with the click of a button.....

    Is it possible to return a value from a subform to a table on the click of a button?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  3. #3
    shaztastic is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    14
    Basically i am trying to make a document register which will allocate the next available number. Each document reference is made up of three parts
    Project Number, Document Type and finally a unique sequential number for each Project Number and Document Type combination.

    I have a form where i enter all the document information and a query that counts the project number and document type to gives me the next available number and i show this using a sub-form.

    I want to return that unique number back to a table along with all the other information on the main form if this is possible.....

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    And what do your tables and relationships look like? You could google "incremental numbers DMax +1" or similar for more info.

    see http://www.599cd.com/tips/access/inc...r-own-counter/

    There are some free data models --some related to documents - here that may be helpful.
    http://www.databaseanswers.org/data_models/index.htm





  5. #5
    shaztastic is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    14
    Have attached screen shot of table relationships....very much still a work in progress!
    Only have a limited knowledge of access so any help is much appreciated.
    Attached Thumbnails Attached Thumbnails Screenshot - 11_01_2013 , 16_43_29.jpg  

  6. #6
    shaztastic is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    14
    Our drawing numbers look something like the following:
    T123/E/001
    T123/E/002
    T123/P/001
    T123/P/002
    T123/P/003
    T123/I/001
    T456/E/001
    T456/P/001
    etc,etc....

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Any particular reason? If you have to find drawings for Pennsylvania from 1998 - 2000 -- how does the coding scheme help?

    Seems there must be other attributes to allow searching/retrieval by other "fields".

    Quite often, if you step back and see what has to "come out of the database", you can get an idea of how it should be structured.

    I see your tables like DrawnBy are not populated.

    You might find the following material valuable in database design.


    I have suggested videos to others to familiarize them with the concepts involved.

    For erd this is a great tutorial
    http://www.rogersaccesslibrary.com/T...lationship.zip

    These free video tutorials describe the processes of data modelling, normalization and entity relationship diagramming. There are other videos, but this group is by the same presenter and covers an example situation. The example relates Customers, Orders and Items.

    http://www.youtube.com/watch?v=IiVq8M5DBkk Logical data modeling

    http://www.youtube.com/watch?v=BGMwuOtRfqU Candidate key

    http://www.youtube.com/watch?v=ZiB-BKCzS_I Normalization

    http://www.youtube.com/watch?v=pJ47btpjAhA Normalization example

    http://www.youtube.com/watch?v=q3Wg2fZENK0 1st Normal form

    http://www.youtube.com/watch?v=vji0pfliHZI 2nd Normal form

    http://www.youtube.com/watch?v=HH-QR7t-kMo 3rd Normal form

    http://www.youtube.com/watch?v=q1GaaGHHAqM E_R Diagramming

    http://www.youtube.com/watch?v=lXAGQ8vmhCY ERD Part 2

    The first few topics at this site are well worth the read.

    http://www.rogersaccesslibrary.com/forum/topic238.html

    Good luck with your project.

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

Similar Threads

  1. Replies: 1
    Last Post: 09-14-2012, 10:27 AM
  2. Filter subform on button Click
    By atom in forum Forms
    Replies: 2
    Last Post: 04-18-2012, 09:43 AM
  3. Replies: 1
    Last Post: 02-20-2012, 01:59 PM
  4. Replies: 3
    Last Post: 07-29-2011, 09:30 AM
  5. Replies: 9
    Last Post: 02-15-2011, 03:05 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