Results 1 to 12 of 12
  1. #1
    ronocoo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2011
    Posts
    6

    Creating a Form without a Table


    Is it possible to create a form without a table? What about a form with unrelated tables?

    Does it require me to know any coding, SQL? I'm not very technical with Access so hopefully I made myself as clear as possible.

    Thanks

  2. #2
    nicknameoscar is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Apr 2011
    Location
    Earlysville, VA
    Posts
    91
    Maybe it would be better if you described what you are trying to do.

    The answer to your question is yes, you can have forms not bound to a table or query. I can't remember if the form is said to be "unbound" or it is the controls in/on the form that are considered to be "unbound".

    Anyway, I am not sure how the form would be useful if macros or VBA code or SQL wasn't used to either put data into the form controls or save data entered into the form controls. Maybe I am wrong.

  3. #3
    ronocoo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2011
    Posts
    6
    Thanks Nick. Ah, yes. That's exactly what I'm trying to do. I want to create an unbound form that allows me to enter data. I'm trying to create a form for monthly cash projections.

    Basically, I have five unrelated tables that contain different categories of transactions. The form should have the flexibility to allow me to enter the classes within the categories.

    Is there a wizard that allows me to do this? I may have to create it using the blank form?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    You want one form to serve as data entry for 5 tables? These 5 tables are alike - same fields? If so, should be one table with another field for the category identifier. Then the form could be bound to the one table. Data entry is direct to table. Simple, no code.

    Otherwise will need code to make the form functional for multiple like tables.

    One option (my preference) is controls on form would be bound to fields that are named the same in all tables. Then code would set the RecordSource of the form when it opens to the appropriate table based on some criteria, such as a button click 'Edit Category A' for example.

    Another is UPDATE or INSERT sql statements to send values to the appropriate table.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    ronocoo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2011
    Posts
    6
    Hey June,

    Yes, that sounds great. I really want to avoid coding since I don't know how. The 5 tables do have the same fields.

    I have the data in one big master table and 5 separate tables. Which one should I be using? Individual tables or the master table? In the master table, the categories are combined with field name class.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    The master table. Should not have individual tables with duplicate data. What do you mean the categories are combined with field name class? This is one field with two pieces of data? Should be two fields. What is field name class?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    ronocoo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2011
    Posts
    6
    I meant that in the master table, all the transactions are combined under one field named class. In the separate tables, they're different. The field name is the type of transaction. Let me give you an example of the excel file that I need to put into access.

    Code:
    	May 16, 2011	May 20, 2011	May 27, 2011	June 3, 2011	June 10, 2011
    Cash Received	Current Week	One Week Out	Two Weeks Out	Three Weeks Out	Four Weeks Out
    X	 $X 				
    Y	 $X 				
    Z	 $X 				
    Total Weekly Cash Received	  $X  	 -   	 -   	 -   	 -   
    					
    Outstanding Checks	 $X 				
    Cleared Checks	 $X
    What's in common is the current week, one week out, etc.

    The categories are Cash Received, Outstanding Checks, Cleared Checks, etc. My goal is to create a form that allows me to enter data so that I can input X, Y, Z under Cash Received and $X amounts. I also need it to total the categories if necesssary.

    How should I go about starting? Using a blank form?

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    You didn't mention having to import data from Excel in your initial post. Are you transferring this data into Access by manual data entry? Still not quite understanding the structure of 'master' table and the 5 individual tables. Do you now have data in these tables? Is data in the master same as in the individual tables, just arranged differently? You need to choose which arrangement to use - the current master table or a combined table of the 5 individuals.

    This doesn't look like raw transactions data. It looks like summations. What do X, Y, Z represent? You need to input the OutstandingChecks and ClearedChecks values?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    ronocoo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2011
    Posts
    6
    Quote Originally Posted by June7 View Post
    You didn't mention having to import data from Excel in your initial post. Are you transferring this data into Access by manual data entry? Still not quite understanding the structure of 'master' table and the 5 individual tables. Do you now have data in these tables? Is data in the master same as in the individual tables, just arranged differently? You need to choose which arrangement to use - the current master table or a combined table of the 5 individuals.

    This doesn't look like raw transactions data. It looks like summations. What do X, Y, Z represent? You need to input the OutstandingChecks and ClearedChecks values?
    Hey June,

    I won't be importing data from Excel. I just want to create a form similar to the Excel with the same headers and categories that I can input into and have it appear the same way. I do want to total the columns though since it needs to total the Cash Received that week.

    For example: When I enter Client X under Cash Received, it should input the Client Name under Cash Received and the same for the dollar amount under Week designated.

    The categories is the first column (Cash Received, Outstanding Checks, Cleared Checks, etc.) then the rest to the right are the same for all categories.

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Whoa! Access is a relational database, not a spreadsheet, can't think in spreadsheet terms. Designing tables like that spreadsheet example is not properly normalized data. Tables are limited to 256 columns. Do you plan to repeat the fields for each date period? How long before you run out? You need to consider that maybe Access is not the correct vehicle for your situation.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #11
    ronocoo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2011
    Posts
    6
    Thanks June, I'll look into other vehicles to use.

    What about if I made several unbound forms, could I combine it into a single report?

    There would be only one field that is different which is the type of transaction, the other fields one week out, two weeks out, etc are similar.

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Reports and forms can have sub reports/forms.

    So the master table has the same fields as the 5 individual tables, with the addition of the Category field as the only variance. Still doesn't address the fact that this is not normalized data. My question stands on whether the 'week out' fields need to be repeated for each date period (every month and every year)? Or is this 'week out' pattern carried out to infinity?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. creating unique ID on existing table
    By TheShabz in forum Access
    Replies: 6
    Last Post: 01-24-2011, 03:53 PM
  2. Replies: 5
    Last Post: 10-28-2010, 09:48 PM
  3. Creating Yes/No Field Using Make Table
    By orcinus in forum Queries
    Replies: 6
    Last Post: 08-19-2010, 11:09 PM
  4. Replies: 1
    Last Post: 07-27-2010, 08:02 AM
  5. Creating a string from all records in a table
    By ocordero in forum Programming
    Replies: 2
    Last Post: 08-07-2006, 09:21 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