dbTalk Databases Forums  

Strange List Box Problem

comp.databases.ms-access comp.databases.ms-access


Discuss Strange List Box Problem in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
BobbyDazzler
 
Posts: n/a

Default Strange List Box Problem - 07-29-2010 , 10:11 AM






frmfind has a list box which is based on a query and an unbound
textbox (txtproduct)

The user enters part of a product code into txtproduct and presses
enter, this fires the afterupdate event which requeries the list box.
Record source for the listbox is a query which is based on
tblproducts with criteria on the field productcode as follows - Like
[Forms]![frmfind]![txtproduct] & "*"

This produces a list of each product where the product code starts
with whatever the user has typed in the textbox. All very simple and
works perfectly...........................

Oddly, if the user only types 1 or 2 characters (which wouldn't
usually be the case!) the listbox returns no records. If I try to
run a copy of the query at the same time I get an error "typed
incorrectly or too complex"

Anyone experienced this?

Reply With Quote
  #2  
Old   
BobbyDazzler
 
Posts: n/a

Default Re: Strange List Box Problem - 07-29-2010 , 10:40 AM






On 29 July, 16:11, BobbyDazzler <david.a.mitch... (AT) inbox (DOT) com> wrote:
Quote:
frmfind has a list box which is based on a query and an unbound
textbox (txtproduct)

The user enters part of a product code into txtproduct and presses
enter, this fires the afterupdate event which requeries the list box.
Record source for the listbox is a query which is based on
tblproducts with criteria on the field productcode as follows - Like
[Forms]![frmfind]![txtproduct] & "*"

This produces a list of each product where the product code starts
with whatever the user has typed in the textbox. *All very simple and
works perfectly...........................

Oddly, if the user only types 1 or 2 characters (which wouldn't
usually be the case!) *the listbox returns no records. *If I try to
run a copy of the query at the same time I get an error "typed
incorrectly or too complex"

Anyone experienced this?
Sorry!!! Found the problem, a null value was the cause, fixed the null
and taken steps to prevent null being accepted. )

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.