| |

VerySource

 Forgot password?
 Register
Search
View: 809|Reply: 3

How to add records to an empty database with VSFLEXGRID?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-2 20:40:01
| Show all posts |Read mode
How to add records to an empty database with VSFLEXGRID?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 United States

Post time: 2020-1-4 14:45:01
| Show all posts
Which database is used?
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-5 09:30:01
| Show all posts
Using the access database!
Reply

Use magic Report

0

Threads

7

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-5 17:42:01
| Show all posts
First pay tribute to Comradelondorerss:-)


Use the adodc control to make a database connection, not a read-only recordset
vsflexgrid.datamode = 2

'Add button
Private Sub addNew_click ()
    Adodc1.Recordset.addNew
End Sub

'Save button
Private Sub saveNew_click ()
    Adodc1.Recordset.UpdateBatch
End Sub
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list