Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order get messed up after append record
Message
From
19/09/2002 15:45:55
 
 
To
19/09/2002 02:47:41
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00702123
Message ID:
00702434
Views:
17
Thanks for answering.
I tried putting thisform.cbserial_id.requery() to replace thisform.refresh to the codes. But the problem is still there.
In fact, I discovered that, even without the requery in the codes, after adding
record I can find the newly added record in the dropdown list of the combo box "cbserial_id", it was even placed in the correct order, which might mean
the combo box was refreshed OK. It probably wasn't the cause.
What keeps haunting me is the table order got messed up after the append action.
When prev button is pressed, the newly added record is always missing.
I am attaching the codes for the prev button. Thanks for helping.

Codes for prev button:
IF NOT BOF()
SKIP -1
THISFORM.refresh
ENDIF

>Try to use requery method for combo, instead of refresh after adding new record into table -source for combo
>>
>>5. Codes in my add record method:
>> APPEND BLANK
>> REPLACE serial_id WITH ALLTRIM(sNo)
>> THISFORM.refresh
>> WITH THISFORM.pageFrame1
>> .ActivePage = 2
>> .page2.txtremarks.SETFOCUS()
>> ENDWITH
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform