Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Questions on DATAGRID

Status
Not open for further replies.

ktchan741

Technical User
Dec 7, 2003
28
SG
I have created a form with a DATAGRID and the following entry fields:
a. INSTL
b. QTY
c. PART NO
d. DESCRIPTION

I also created the following command buttons: SAVE and CLOSE.

I have no problem in capturing the entry from the above field into the DATAGRID.

However, is there anyway that the text I keyed-in the INSTL entry field will not changed until I change it.

For example, if I key-in "ITEM -1001" in the INSTL field follow by the respective qty, part no, description field and I click on the SAVE button. All the fields entry are captured in the DATAGRID. All the entry fields will become blank and each time I have to re-keyin the INSTL entry field with changes only to the qty, part no, description field. The question is can the INSTL field remains as what was key-in previously (until I key-in something else) after I click on the SAVE button?

Any advise is appreciated.

Thanks.
 
Well, your function OnSave, did you write it or is it auto generated? I'm not sure.

Quick and dirty you could add to your OnSave function
Code:
Dim a as String
a = a.Text

Post to DataGrid

a.Text = a

this is assuming your field is called a and Post to DataGrid is your code
 
cjburkja,
the OnSave function is written. I tried your code but it does not work?? Is something missing?? Can u advise. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top