Populate Form With Recordset Data

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
I have a VBA function returning an ADODB.Recordset of 5 columns wide by however many rows deep (probably not more than 50 records at any one time). I would like to return this recordset to a DataSheet style Form so that users can review the data and make amendments as required.

How do I do this? Do I need to place controls on the Form and if so do I have to create a text box for each field for each record?

Thanks for any help!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
To expand on my previous post: this required use of a subform with a bound ADO recordset which permitted the display of the data in DataSheet view. I was having a lot of trouble actually getting a subform onto my main form until I used the Access Help (I know, I know - should have been my first port of call initially ;)).
 
Upvote 0

Forum statistics

Threads
1,215,455
Messages
6,124,935
Members
449,195
Latest member
Stevenciu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top