ee
That brings up an error message saying "Method or Data member not found" and highlights the line .
.Edit
?
Cheers
Dan
Main Topics
Browse All TopicsI have table (supplier) which simply combines two primary keys from two other tables Contacts and Items, supplier uses the primary key from items as its own primary key. In a certain form there are two list boxes and an option box with 3 radio buttons. The 3 options are, Do nothing, Change to another free item and delete item. The first list box uses a query to show all items that are currently attached to the contact which is in question (as a contact can have more than one different item) from the supplier table. The other list box runs a similar query that compares the items in the supplier table and those that are in the items table, and displays those that are not in supplier. These are free items and are awaiting to be combined with a contact in the supplier table. When the first and third options are selected the second list box is disabled, when the second option is selected the second list box is enabled. What I want to happen is the user selects an option from the first list box, then choose an option, should that be option 1, nothing should happen. When option 2 is selected, the itemID from the first list box is replaced by that in the second list box. When the third option is selected the record selected in the first list box should be deleted. These events are triggered by a button click. I am currently using the code shown to achieve this, nothing happens to any records although there is no errors. Any suggestions?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
What are the "Data Value" for the 3 options in your Option Group? Open your form in Design view, the select the option button or checkbox you're using and make sure that the Data Values for those controls correspond to the values you are using in your Select Case.
Are you sure you're referring to the lstItems listbox correctly? Generally you use Me.lstItems.Column(0) to refer to a specific value in the listbox (note that Columns are zero-based, so Column(0) is the first column). The "value" of your listbox may not be the actual value you expect.
Are your listboxes set to multiselect? If so, you'll have to modify this code.
Easiest way to verify this is to set a breakpoint in your code, then "run" it by clicking your command button. To set a breakpoint, place your cursor in the first or second line of your code and press F9 ... then click the button and you should be thrown into the Editor window. Use the F8 key to step through your code. You can also use the Immediate window to examine the values of the various items ... for example to see the value of the first column in your lstItems listbox type this in the Immediate window and press Enter:
?Me.lstItems.Column(0)
Also: I don't see the need to use Recordsets to do this ... straight SQL would be faster, assuming you don't need a "handle" on the data afterwards.
For the Second Case:
CurrentProject.Connection.
Third Case:
CurrentProject.Connection.
Business Accounts
Answer for Membership
by: ee_rleePosted on 2008-02-06 at 08:01:40ID: 20833052
try this
Select allOpen in new window