473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Listbox in subform

jimleon
74
I have a form with a listbox on it that is populated by a query.
On its own this works fine and lists the querys results, however when I use the same form as a subform it stops working.
I have checked the form, listbox and query but cannot find the problem.
What does the mainform do to the subform (apart from turn it into a control) to stop the listbox outputting the results?
Jan 29 '09 #1
7 2033
ChipR
1,287 Expert 1GB
When you say stops working, do you mean that nothing shows up in the list, or it has erros? Is the list source set in its properties or is it set/requeried in code?
Jan 29 '09 #2
jimleon
74
Yes, I meant nothing shows up in the list box. The Row Source is set in the properties thus:
SELECT listNewJobs.workDate, listNewJobs.[Client Ref], listNewJobs.Company, listNewJobs.workType FROM listNewJobs;
and the Row Source Type is Table/Query using the query called listNewJobs
Jan 29 '09 #3
ChipR
1,287 Expert 1GB
Well that certainly looks fine. How about the column count and column widths in the Format properties? I don't know why those would change, but I can't think of anything else at the moment.
Jan 29 '09 #4
jimleon
74
As a stand alone form it works fine so I know everythings ok there, it is only after it has been put in as a subform it wont work
Jan 29 '09 #5
missinglinq
3,532 Expert 2GB
When the form is used as a subform, what view is it in? Most subforms are displayed in Datasheet View. In this view, a Listbox is displayed as a blank textbox. When you move into the textbox a dropdown arrow appears and can be used, ala combobox style, to run thru the selections. This same behavior is repeated when a subform with a Listbox is displayed in Datasheet View.

Linq ;0)>
Jan 29 '09 #6
jimleon
74
Its displayed as a single form...
Jan 29 '09 #7
missinglinq
3,532 Expert 2GB
Don't have a clue then! Could you zip it up and post it so we could place our hands on it? And it's always a good idea when attaching a file to give the Access version you're using. Actually, it's a good idea anytime you're posting a question!

Linq ;0)>
Jan 29 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: M Wells | last post by:
Hi All, I am developing an Access 2003 project application with the back end in SQL Server 2003. I have a master form that tracks projects, and several subforms on it that track various...
4
by: Alienz | last post by:
I have a subform where I have a subform with 20 options to select from. When I set the multiselect property to simple and select multiple options, nothing is stored. I have another table with...
2
by: Simon P | last post by:
Hello group, I'm in desperate need of help. Here goes : I have the following tables : CONTACTS (ContactID, FirstName, LastName, Company, etc.), SHOWS (ShowID, ShowDescription) and SHOWDETAILS...
3
by: Paul T. Rong | last post by:
I have a listbox (of product names) control on my form. I want to pass the selected item (a product name) to a subform, and the product unitprice should apear automatically next to the product name...
2
by: Hey_Moe! | last post by:
I have subform which uses a SQL statement as the record source. One of the criteria (ie. Part of the WHERE condition) is a column value from a ListBox on the MainForm. Two problems exist: 1....
4
by: Corey | last post by:
I am having some real trouble getting a listbox rowsource to load properly. The listbox is actually on a subform. My main form has several command buttons that change the MASTER_SUB_FORM object...
6
by: AAJ | last post by:
Hi all I have a listbox on a form. If I set its rowsource directly, and the query in the rowsourse returns no data, then the displayed listbox is empty (exactly as you would expect) ...
3
by: Alan Lane | last post by:
Hello world: I have a Parent form with a combobox, where the user selects a Contract or Estimate number. Then, on a subform, I have a listbox that gets filled with the details of the selected...
7
by: tonsam | last post by:
I am planning to create a form (Issuance) where all the records of the subform will be selected from the listbox. The listbox is not part of the main and subform but will only be visible upon...
8
by: NJonge01 | last post by:
Great thanks to all the helpful responses I've read! Recently using MS Access after a lengthy (7-10 years) away from the tool. I apologize for posting a question that for all intents & purposes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.