We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

VBA Help

Hi everyone,

I'm hoping one of you clever people can point me in the right direction?

I use Access a lot, mostly for data comparison but I've started building user databases. I'm pretty new to VBA tbh so I'm still learning the best ways to interact with the user.

I'm working on a database with loads of background and report creation functions but with few forms that users will see e.g. splash, main menu, forms for updating actions etc.

I have a user form containing data (tabstrip, various list boxes etc) with a subform attached. The subform is the part the users fill in.

I have put some validation in to make text/list/combo boxes visable based on users selecting certain statuses from combo boxes which they work through. How do I interact with the navigation buttons though to pop up error messages and stop them moving records if they have missed something I need them to fill in?

I know how to call functions within command buttons to do it but I don't know how to do it with the form navigation buttons. I could take those buttons off but I don't know how to then create a text box that shows the current record number.

Has anyone got any ideas or can recommend a place to look for this as I can't seem to find what I'm looking for.

Thanks in advance.
:rotfl: It's better to live 1 year as a tiger than a lifetime as a worm...but then, whoever heard of a wormskin rug!!!:rotfl:
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 353.5K Banking & Borrowing
  • 254.2K Reduce Debt & Boost Income
  • 455K Spending & Discounts
  • 246.6K Work, Benefits & Business
  • 602.9K Mortgages, Homes & Bills
  • 178.1K Life & Family
  • 260.6K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.