473,382 Members | 1,238 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,382 software developers and data experts.

Listboxes with separate query in continuous form ?

Hello everyone,
I have a specific need and i can't seem to find an answer.

What i wish to do: list activities in a continuous form, and in one column display for each row a listbox which rowsource query is based on another column value from the same row. Can it be done simply, and consider the rowsource like a bound field? At a larger scale, how can i access an specific (row) unbound field in a continuous form?

I have to admit that the best thing for me would be to create the whole continuous form through vba ... is that possible?

If what I want isn't clear, I can provide more precisions.
Thanks in advance!
Dec 3 '13 #1
2 3982
jimatqsi
1,271 Expert 1GB
Unfortunately, unbound objects don't work well on continuous forms. When one is changed they all change.

You have two options. One is to put the list box in the header or footer. The other is to make your form a single form and make a sub-form to hold the detail data. Put a list box and the sub-form in the detail area of your main form.

In the sub-form, put some code in the On Current event to update the list box that is on the main form.

Jim
Dec 3 '13 #2
zmbd
5,501 Expert Mod 4TB
jimatqsi: That's not really the whole picture.
I have several unbound forms and controls where'in the control will return a unique value in the details section, I even have one that will calculate the difference between the relative-prior record and the current record (yes that can change in positionals; however that's the desired result - I have another that spans based on PK's and FK's vs date). However, these types of controls are typically very difficult to create

pifpifpoufa:
You have two questions. Please only one per thread.

To get a different value, you will usually need a custom function.

For example, I have database that shows a different photo for each person (this was fun) in a continuous form.
I have a text control with the control source:
=fncPhotoIdLoc([people_photo],"photoid")
The function takes the information from the field [people_photo] and the directory location "photoid" finds the path (in this case realative to the current database location) and returns the full path to that photo.
This same function acts as the control source for my image control too (works in ACC2003 and ACC2010).
The report for this database does the same thing.

These controls are NOT editable

As for your specific need:
rowsource query is based on another column value from the same row. Can it be done simply, and consider the rowsource
Keep in mind that the CONTROL source is NOT the same as the ROW source. You will also have to have a REQUERY in the dependant control to get the ROW source in the dependant to update the available ROW source recordset when the value of the dominate control is changed.
There will be some additional difficulties with your form on loading in the form control values may not be set; thus, resulting in a null/invalid recordset which can cause the form to crash.
Dec 3 '13 #3

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

Similar topics

3
by: Damian | last post by:
Hi. Is there a way to programatically populate a continuous form? I have an array of descriptions that I want to display in the continuous form and I have a textbox on the form called...
1
by: Marcia | last post by:
I have a combobox for types of music and a combobox for artists. The rowsource query for the artists combobox associates artists with different types of music. In the query I use the name of the...
4
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. ...
10
by: DFS | last post by:
I'm sure this has been discussed before, but I'm too tired to hunt for it. I have a survey table containing questions with different answer scales. Some are 1 to 5, others are A,B,C, etc. I show...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
3
by: S P Arif Sahari Wibowo | last post by:
Hi! I would like to make an editable continous form, where most fields will be from table A and editable, except 1-3 fields are a glimpse into table B and uneditable. Table A relate to table B...
2
by: panwala_bhavesh | last post by:
Thanks in advance... I have a form displaying the results of a query in a continuous form style. I want to be able to double-click on the key field of the form (a textbox, in this case a AssetID)...
1
realayumi
by: realayumi | last post by:
ACCESS 2003 WIN XP Hi, i'm new in access, just a view days, this is my first post. Sorry for my bad English. I have 3 tables. tbl_product
4
by: Adam Tippelt | last post by:
Situation: I'm using a continuous form to display a lot of information stored in a datasheet. I'm using the form because it allows me to display multiple rows of information per 'record' which is...
4
by: NarenKeer | last post by:
Hi, I have been trying to find a solution for this from past one week and no good progress yet. I just want to avoid the parameter window displayed by query in record source property of a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.