Creating a Database with UserForm VBA Coding

Ashna1994

New Member
Joined
Apr 19, 2020
Messages
1
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
Platform
  1. Windows
Hi all,
I am on the verge of completing my project in Excel where users key in data into fields (in user form) and data gets automatically updated into a database sheet.
I have added all buttons necessary like text, command, option buttons.
Now I am looking at adding a button so that in the user form,
users can go to previous data and then back to current ones.. I think it is achievable with spin button < > but I am not sure how to code for it.

I have two frames in the userform.
In the first frame, users enter the data, the second frame is list box, coded so that whatever data is added, they can view.

I just want the whole form (all data in frame 1) to go to past records when I press the < button and back until current records when I press > button.

Please help.
Thanks so much in advance.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi all,
I am on the verge of completing my project in Excel where users key in data into fields (in user form) and data gets automatically updated into a database sheet.
I have added all buttons necessary like text, command, option buttons.
Now I am looking at adding a button so that in the user form,
users can go to previous data and then back to current ones.. I think it is achievable with spin button < > but I am not sure how to code for it.

I have two frames in the userform.
In the first frame, users enter the data, the second frame is list box, coded so that whatever data is added, they can view.

I just want the whole form (all data in frame 1) to go to past records when I press the < button and back until current records when I press > button.

Please help.
Thanks so much in advance.


Did you ever get any help with this issue?
 
Upvote 0

Forum statistics

Threads
1,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

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