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

Can't get Combo Box to Repopulate when Selecting Different Record

Here is my situation: I have frmSiteInfo(tblSite) which holds my main surveysite data, and within each Site, you can have Surveys (frmSurveyInfo/tblSurvey) (which is a subform of frmSiteInfo on a new Tab), and Transects (fTransects/tblTransect), also a subform of frmSiteInfo on a new tab.

The Transect data entered in fTransects is static for each individual site. There are always 8 transects per site.

Within each frmSurveyInfo, there is subform fSubDistanceData(tblDistanceData), that stores the individual counts and other data collected at each of the Transects. There can multiple surveys at each of the 8 transects. All I want to do is populate a combo box on my fSubDistanceData with the Transect#s and ID's that were entered on my fTransect form, so I can keep all of the transect data linked to my distance data. The form is in dataset view.

I can set the row source for intTransectID on my fSubDistanceData form to tblTransectData.intTransectID and initially, it works fine. However, when I switch to a new Site, the combo box does not update. I have tried everything I can think of from requerying various forms, fields, combo boxes, creating recordsets, queries etc.

I know it is a bit confusing, trust me, but any help would be appreciated.
Mar 28 '13 #1
3 1430
Rabbit
12,516 Expert Mod 8TB
Hard to say what's wrong without seeing the code.
Mar 29 '13 #2
nico5038
3,080 Expert 2GB
Did you try to use for the refresh after the switch:
Expand|Select|Wrap|Line Numbers
  1. Me.cmbX.recordsource = Me.cmbX.recordsource 
  2.  
This will force Access to requery the combobox.

Nic;o)
Mar 30 '13 #3
zmbd
5,501 Expert Mod 4TB
I can set the row source for intTransectID on my fSubDistanceData form to tblTransectData.intTransectID and initially
This is where we will more than likely find your issue.
Open the form to the control and the data tab. <ctrl><c> the value in the record source.
Open this thread and in the "Post your reply" box, click on the [CODE/] button in the formatting toolbar.
This will insert a pair of [code] [/code] tags.
Now place the text cursor betwen those two tags and <ctrl><v> the information.
Apr 4 '13 #4

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

Similar topics

1
by: Amin Gunawan via .NET 247 | last post by:
I would like to put a combo box in a column of a datagrid. I've seen the samples in the MSDN library of other sources, butall samples didn't catch the 'DOWN/UP' keystroke. It means thatwhen I select...
3
by: Chris Dixon | last post by:
I am using a SQL Server 7 databaes with an Access 2000 front-end. I have a form where after the user inserts a record the screen refreshes to display a completely different record (without any...
1
by: amanda | last post by:
What will be the syntax if I want to compare whether the phone number I am entering when adding a record already exists in database. The phone field in that table is set to primary key. We are...
0
by: Not Me | last post by:
Hi there, How come, when using default settings on a gridview which has a stored procedure as it's datasource's selectcommand, do I have to sort the stored procedure in order to have the edit...
6
by: banderson | last post by:
Hello, I have a form and a combo box that I use to filter the form to particular records. I also have an "add new" button that, when clicked, adds a new record. My problem is that the filter combo...
2
rsmccli
by: rsmccli | last post by:
Access 2002 Hi, I have a number of comboboxes/textboxes in the header of a form that the user selects values from. These comboboxes/textboxes correspond to controls in a datasheet view subform....
1
by: MerlinS | last post by:
Using Access 2003. I have a form and a subform. On the main form, one of the fields is a lost box, which lists line numbers ie 1, 2, 3 etc. Then the list box is clicked, the subform corresponding...
4
by: techno58 | last post by:
In my form i want to be able to fill all my controls with a particular record by selecting that record from my datagridview.If i select a particular record after clicking on it all my controls like...
0
by: BigRedEO | last post by:
I am needing to SELECT all fields/records from a large table (96 columns, over 100 million records) into an outfile. I need to change any "NULL" to a blank. I can use "SELECT...
2
by: fishnfrogs | last post by:
Hi, I just uploaded 9 million records to a mysql table. The table consists of an id, a name, and a numeric value. The way its supposed to work is that the user passes the name to php and php...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.