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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding a new record

Status
Not open for further replies.

ishikha

Programmer
Mar 22, 2002
36
0
0
IN
hi friends,

i am having one problem.i want to add new record the flex grid i.e when i click on add button which is on my form its add the new row to the flex grid

also i want to add the new record in between the flex grid
suppose user puts the record pointer on some record and click on add button then its add the new row either above or below that record
please tell me some sol

ishikha
 
hi,

i am able to add new record at the end.but not in between
also tell me how to enter data in flexgrid

ishikha
 
With MsFlexGrid1
'use Chr(9) for a column break when adding an item to
' a multiple column grid
strNewEntry = "Entry " & Chr(9) & "45"
'Add item at the line just below the current row
'Syntax: .AddItem ItemToAddString, OptionalPosition
.AddItem strNewEntry , .Row + 1
End With

'If this is a bound grid and if you add an item manually to the grid, you will need to add the item to the recordset also.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top