Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
False record in use error in form
Message
 
 
To
25/01/2006 17:05:48
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01090307
Message ID:
01090588
Views:
14
Tracy,

Slight correction, since it struck <g> me:

5 - is optimistic, 4 is pessimistic <g>

>What is the rowsource of the combobox? How is it created?
>
>Just some stuff to rule out. Is multilocks on? Is the cursor buffering mode set to optimistic table? What does dbf() return on the cursor you create? Cursors usually are stored in the tmpfiles location. What happens if you set multilocks on and set the buffering?
>
>IF SET('MULTILOCKS')<>"ON"
>	SET MULTILOCKS ON
>ENDIF
>CREATE CURSOR mycursor (cfieldname c(30)) && whatever your cursor is
>? DBF('mycursor') && this points to my tmpfiles location set in config.fpw
>=CURSORSETPROP("Buffering", 4, "mycursor")  && optimistic table
>*Now try selecting from the combobox
>
>
>
>
>>I have a form that has a grid on it. The record source for the grid is a user-defined cursor.. i.e. created by create cursor command.
>>I have an add button that appends a blank and moves the cursor to the first column.
>>The first column has a combo box in it.
>>
>>Sometimes the user picks a record and they get the "record in use by another" error.
>>
>>How can this be? The form has a private data session, the underlying cursor in the grid is created when the form is initialized. There are no other users...
>>
>>How can I trap/remove this spurious error.
>>
>>
>>TIA,
>>Mike
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform