Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting 'Record out of Range' error with paramiterized View
Message
From
08/11/2000 12:12:15
Adam Skowronski
Custom Designed Systems
Miami, Florida, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Getting 'Record out of Range' error with paramiterized View
Miscellaneous
Thread ID:
00439284
Message ID:
00439284
Views:
61
I have a Hotel Reservation system and the reservation form has two dropdown lists that are related. The first is a list of Hotels (cboHotels) rowsource 'fields' and the valid event stores the hotel ID (id_hotel) to a public variable (gnHotel). The second is a list of Room Grades (cboGrades) that hotel offers with the RowSource a View. Both of these are BOUND to the Reservation record.

The View (vRoomGrades) has 4 fields "grade_desc,hot_grade,grade,id_hotel" and I perform REQUERY() passing 'gnHotel' from the cboHotels.Valid(). For the most part this works fine, yet when I navigate through the Reservation records (next,back) I get 'Record out of Range' with one hotel, yet there are records for that hotel. Where is the best place to call the Refresh() or Requery() for cboGrades, and what could be causing this abnormal behavior?

Any ideas here would be helpful.
Adam
Adam J Skowronski
Next
Reply
Map
View

Click here to load this message in the networking platform