Solved

Microsoft, Access, 2007, Create Multiple Item Form fom Subdata in Table

Posted on 2008-09-29
4
970 Views
Last Modified: 2013-11-28
Hi

I have a table which has a custom form attached to it for data entry.  The spec has changed and I have now had to add subdata into my table.  I don't know how to create and attach a form to the subdata.  It needs to be a customisable, multiple item formn which looks up data from two other tables.  I've tried using the wizard, but can't seem to get it to pick up the subdata rather than the main data in the table.

Please can someone tell me how to do this before I throw the laptop out of the window?!

Thanks
Sarah
0
Comment
Question by:ScuzzyJo
  • 2
4 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 22596392
By "subdata" do you mean related data? Or are you referring to the Attachment field in a table?

If you're referring to related data, then just build a form that represents your related data and then embed that form in the main form (in design view, just drag the new form and drop it on the old).

If you're referring to an Attachment field, you can use the Attachment control ... it's on the ribbon, just drag/drop it to your form and set the ControlSource to your Attachment field.
0
 

Author Comment

by:ScuzzyJo
ID: 22596484
Hi

I mean a subdatasheet, i.e. I have a plus sign next to each record and I can add multiple sub records to the initial record.  My database is about spending authorisation levels.  The main table in question has employee details on it.  The subdatasheet will show a level, e.g. 1, 2, 3 and a nature of expense, e.g Cap-Ex, Finance, Sales.  The idea is that a member of staff in, e.g. Finance, might have level 2 for Cap-Ex expenditure (which then goes and looks up the types of expense such as office furniture and the highest amount they are authorised to spend), but would only have, say, a level 5 for Sales, so that they could write off bad debts under a certain amount but couldn't go and do the equivalent level 2's in the sales department.  Hope that makes sense.

Also, I've just found out (and I'm gonna fight this!) that I can't publish this on the intranet, so I'm also interested in knowing how I can import data from Excel into the subdatasheet.  I'll post this as a new question so as to assign more points.

Thanks
Sarah
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 22643709
ScuzzyJo,

Read LSM comment closely, he recommends using Forms not tables for this.

The Subdatasheets are handy for "seeing" related data, but you can't do to much with them in terms of programming/Customizing.

JeffCoachman
0
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 250 total points
ID: 22643719
Besides you can't simply Import data into a subdatasheet.

You must imort the data into the uderlying table, but again, this should be a moot point, because what you are asking for would be more properly done with forms.

These is also a unwritten rule that says that the Database user should never have direct Access to your tables.
All interatction with the database should be done through forms.

JeffCoachman

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now