473,625 Members | 3,239 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help needed on creating a subform

I am trying to create a form that shows quote info, but also has a
subform that lists all keywords and allows you to select multiple
keywords to associate with that quote. I have never done a subform
before and am struggling a little with it as there is an element of
indirection involved.

Any pointers would be greatly appreciated.

A summary of my DB so far is:

Keywords:
- KeywordID
- Keyword

Quote:
- QuoteID
- Quote

KeyworkLink:
- KeywordFK
- QuoteFK
Dec 12 '07 #1
2 1468
On Dec 11, 6:42 pm, Craig <craig...@gmail .comwrote:
I am trying to create a form that shows quote info, but also has a
subform that lists all keywords and allows you to select multiple
keywords to associate with that quote. I have never done a subform
before and am struggling a little with it as there is an element of
indirection involved.

Any pointers would be greatly appreciated.

A summary of my DB so far is:

Keywords:
- KeywordID
- Keyword

Quote:
- QuoteID
- Quote

KeyworkLink:
- KeywordFK
- QuoteFK
It might be best to practice with something simple to get the idea of
how FORM / SUBFORM works and behaves during use, and then elaborate
with your QUOTE / KEYWORD details.

First make two tables, and then make a form for each table.

Pick a table to represent the top of the hierarchy, this will be your
main table. The other table will be your sub.

Now open the form that points to the main table and make some extra
room to allow space to place your sub form.

Now, with this main form in design view look for the subform icon on
the toolbar and click it. Now use the mouse to drag a rectangle to
represent the space for your sub form. After you do this the access
subform tool wizard should ask you to select a form that will go in
this place, and then you will be asked to indicate what variables will
link the two. After you indicate one variable (aka, field) you will
see an option to enter up to two more variables for the linkage (just
use one for starters as you need to see how the form/subform works).

Once that's done you may need to tweak the size of the main and sub
forms by going in and out of design view and form view. Once you are
satisfied with the look of things you can play around by entering some
test data. Then close your form and look in the tables to see where
the test data have been written.

As you do this you will probably begin to see how to elaborate the
simple structure to fit your design objective of making a main/QUOTE
table/form with subform/KEYWORD details.

I hope this information is helpful.

-- Bill


Dec 12 '07 #2
Thanks for both your responses.

I am able to create a main form for my quote with a subform of
keywords. The keywords are a continuous form of comb boxes that you
can choose and add to. I have not played around yet to get it really
nice (e.g. removing some of the form controls I don't need seen,
making it easy to delete a keyword etc), but the basics are there.

What I was hoping to have was a selectable listbox of all Keywords
that the user could then select multiple instances of. To me that
would be a much more user friendly way of doing it, but YMMV.

Rod, you mentioned that this was possible with some programming. I'm
not adverse to a bit of programming, so if it is not too convoluted
I'd like to give it a try. What do I need to do?

Thanks again.

Craig
Dec 13 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
3601
by: Aladdin | last post by:
I have an MS Access form on which I have a listbox listing tables in that database. I want to be able to click on any of those tables and view its contents on the same form using subforms or any grid control. I tried many grid controls (DBGrid, DataGrid, MSFlexGrid), the ADO Data Control and everything I can think of, with no success. Here are the contraints I faced: (1) Populating any of the grid controls manually is too slow for my...
2
1363
by: Josh Felker | last post by:
Hey everyone. I have a daily log form with my investing info. In that form I have 2 subforms, the first shows my profits on all the stocks I traded that day, the second shows my profits on those stocks during special times of the day. I want to make a query that will show my total profits each day (sum of subform 1), my profits from subform 2 (sum of subform 2), and the difference between the two. I can't seem to make the difference...
2
2031
by: Derek Jones | last post by:
I am currently working on an application for our Business Office to easily search for new budget codes that we have to establish due to an administrative system conversion we are currently undergoing. They would like to be able to find a new code via searching by old code or searching by the object name. I have the search by old code form done exactly the way they want it. For the search by object name form, I have it set up with a...
9
1516
by: Deano | last post by:
I need to knock something up quickly to allow a teacher to record incidents at a school. This means logging the type of incident e.g bullying, fight etc and the pupils that were involved. So I have tblPupils, tblPupilEventLink (the junction table) and tblIncidents. tblPupils relates to the junction table on PupilID and tblIncidents relates using IncidentID, as this is clearly a many to many relationship - many events can involve a...
10
1712
by: sara | last post by:
Hi - I am developing a simple app, and just found a problem that I can't fix after 4 hours of trying. I display a list of customers, and the user chooses one and displays "orders". The frmOrders displays correctly, with the subform - frmOrders_sfrmCustInfo - on top that is correct. The subform displays cust info - name, address, phone. Name is from a function that takes
9
7358
by: Alan | last post by:
Hmmm, I'm not too good with the syntax of referencing a subreport. I have frmInvoice which has the invoice details (e.g. ProductCode, ProductCost etc) in the subform frmInvoiceDetails. I'm trying to get a field (AccountID) to show in the parent form based on whether a particular product code (EXT) is present in the list of ProductCodes on the subform. So far I've tried: IIf(Reports!!="EXT",Null,!)
5
3210
by: vsteshenko | last post by:
Hello, This is my second post to the any usernet group and the first one was posted to the wrong one. I am currently working on creating an order form for sales associates at my work to be used at conventions. I have a main form with two subforms. On the main form, there is a text box that displays the sum of total orders entered in the subform, . I'm trying to create another text box on the main form, that looks at the subtotal...
3
1789
by: solargovind | last post by:
Hi, I am New to this forum. I need steps that i do in creating subform. In main form, i have one table fields like vendor,account,due amount,balance amount and Requisition_id which is autonumber field. I tried to create subform by using table or that table's form which are having autonumber field and this is to be linked with Mainform autonumber field(requisition_id). But the following errors comes.
1
1671
by: Coll | last post by:
I have a form with a subform on it. On my main form, you select an employee id number and the top portion of form fills in with data, and the bottom portion of the form,which is a subform, lists existing records there are for that employee (one to many relationship). How can I set up my main form, so the user can select one of the records on the subform and retain that recordid number for use in opening a new form and displaying the that...
0
8259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8192
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8696
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8358
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6119
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1504
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.