Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform.mylistbox2.value) record out of range
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00058930
Message ID:
00059308
Views:
30
>>>>>>I am incurring a "record out of range" when I evaluate the expression
>>>>>>"thisform.mylistbox2.value", I think this to be an inappropriate message.
>>>>>
>>>>>How are you evaluating the expression?
>>>>>BTW- You can make it easier for people to answer your questions by giving more details about the situation where you are experiencing a problem.
>>>>
>>>>Well the user has made selections from 2 listboxes, one after the other.
>>>>In the 2nd listbox's click, I make the evaluation and get the error. one thing, listbox2 gets the focus before listbox1 so "?thisform.mylistbox2.value" is executed in listbox1
>>>
>>>Tim (new picture?)
>>>
>>>Does the data in Listbox2 change after the choice in Listbox1? You may be needing a requery here.
>>>
>>>HTH
>>>Barbara
>>
>>Yes new photo. In the click section of said listbox I copy results to temp file and then issue a brow, then it bombs out. But if I issue do form other and do the above, it works.
>Tim, every time I've gotten a "record out of range" error I've been in the wrong SELECT area. This possiblility seems to be supported by your getting the correct answer (or no error) when you approach from a different angle.
>>HTH>Barbara

Ok you're right, I have a statment like this:

With Thisform.myListbox2
.RowSourceType=2
.RowSource=""
.rowsource= 'WoffICE'
*.Requery
Endwith
and on the click section I open another file and ,thus, the error. What is a good way out of that?
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform