Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form displays first record
Message
From
23/08/2000 16:57:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Form displays first record
Miscellaneous
Thread ID:
00408505
Message ID:
00408505
Views:
36
I have created a 'one-to-many' form that display manifest shipped for a particular date.

When rightclick on the grid (on this form) a menu displays for you to add or edit record.

When select new from the menu the ADDFORM always come up displaying data for the first record and not blank fields.

HOW CAN I GET AROUND THIS.

MANY MANY THANKS IN ADVANCE

In the one-to-many form 'grdadditem' method I have:

LOCAL lmani_code
SELECT manifest
lmani_code = THISFORM.PAGEFRAME1.PAGE1.txtMan_no.VALUE
*-- Delete any empty line items
DELETE FOR EMPTY(mani_code)
DO FORM ADDMAN WITH lmani_code
thisform.pageframe1.page1.grdManifest.Refresh()
thisform.pageframe1.page1.grdManifest.SetFocus()

Form ADDMAN.INIT is as follows:
LPARAMETERS tcMani_code
APPEND BLANK

thisform.cntmanifest1.txtEntry.Value = tcMani_code
THISFORM.cntmanifest1.txtBlNo.SETFOCUS()
Next
Reply
Map
View

Click here to load this message in the networking platform