Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listbox problem

Status
Not open for further replies.

akinia

Programmer
Nov 23, 2000
69
BE
Hi,

I've created a custom menu with few controls.
One of these opens a form which retrieves data into a listbox.
This is done using VBA code ( lbo.rowsource="select..."), not from the listbox properties.
I get the results in the listbox but can't select any row.
The Locked property is set to NO and Enableb to Yes.

Any idea will be appreciated . ;-)

Thanks.

have a nice eday
 
I remember having a similar problem...

I can't remember the solution exactly though...

I think it's got something to do with the control source of the lbx, if the control source is referencing something that's not recognised by the query in the row source, you'd get something like that...

try playing with the names of the returned columns in your row source, or the bound values of the list box...

although I really don't know if this is the right answer or not...
 
Hi Crowley16,

I've found the problem.
To open the form from the menu I use a macro, and the data mode was read only.
Sorry I apologize for so a stupid thing. :-(


Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top