473,404 Members | 2,170 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,404 software developers and data experts.

A2002: Finding ListIndex of code-generated combo box selection

I just realized that I posted this earlier with no title. Sorry.
Here's the original post:

I have a form with a combo box on it that, when a selection is made,
fills in several other controls on the form. The data list for this
combo box can be updated via another pop-up form. When I close this
pop-up form, I requery the combo box to reflect the addition in the
list.

Rather than having the user select the name they just added, I'd like
to set the combo box and all its related controls automatically. When
I call its OnClick code from my update pop-up form, I can set the
value for the combo box fine, but as soon as I reach the part that
fills in the other controls, the combo box is reset to the first row
of data in its source table, and then the other controls are filled
accordingly.

I was hoping that when I set the value for the combo box and then used
....column(1,forms!MyForm!cmbComboBox.listindex), that Access would see
a list index as though the user had actually clicked on it.
Apparently, though, that's not the case. Am I missing something
simple? Any help is greatly appreciated. Thanks.

-Josh
Nov 12 '05 #1
0 1485

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

Similar topics

1
by: Richard Holliingsworth | last post by:
Hello: Thanks for reading this. We just converted to A2002 and some of my querries have stopped working and I can't figure out why. Basically, anything with a "NOT" is not working. For...
1
by: Paul Drabik | last post by:
I have an app written in A97. I also have sporatic users upgrading to A2002 as they get XP on the machines. So they need to open my A97 app. To do so, of course, I open the MDB exclusively to...
1
by: Rob Parker | last post by:
I posted this (with a different subjetc line) in the ms.public.access.forms newsgroup a few days ago, but haven't had a single response there. I'm hoping maybe someone here can help. Using...
1
by: Rob Parker | last post by:
I posted this with a different subject line (in two posts - I added additional info in the second) in this newsgroup a few days ago, but haven't had a single response. Hopefully, that was because...
5
by: Jonesgj | last post by:
Hi, I have loaded a listbox with items from a database. I now want to allow the user to re-order the list box manually using up down buttons, before submitting his changes to back to the...
3
by: robert d via AccessMonster.com | last post by:
I develop my application on my desktop which has Access 2002 (default file format of A2K). My client uses A2K so I have installed A2K on my laptop. Recently when developing in A2002 my front end...
1
by: andrew.panin | last post by:
Hi there! I've got a trouble with these things. What's going on? 1ST STEP: we have ListBox item. Let's call it ListBox1. We're adding four values to it using AddItem method:...
6
by: tombsy | last post by:
Hello Group. I work for a company who is about to embark on a long awaited Office upgrade from Office 97 to Office XP. Office XP comes with Access 2002. I am an accomplished Access developer...
0
by: Tom | last post by:
All: I posted on this yesterday, but for whatever reason, Google isn't dealing nicely with it... Anyway, I need to install A2000 on a computer that already has A2002 so I can create A2000 mde...
1
by: kshtjj | last post by:
Dim db As Database Dim rs As Recordset Dim WS As Workspace Dim Max As Long Private Sub Form_Load() Set WS = DBEngine.Workspaces(0) DbFile = (App.Path & "\Database\AddressBook.mdb") ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.