How to Run Code as Your MS Access Form Opens - On Open, On Load, and On Current

  Рет қаралды 6,058

Sean MacKenzie Data Engineering

Sean MacKenzie Data Engineering

Күн бұрын

Пікірлер: 16
@edwardkinney968
@edwardkinney968 2 жыл бұрын
I am getting a lot of good information from your videos, Thanks. Have you ever set different control properties on a form on different records? Based on your video it must use the On Current event. I can't seem to figure it out.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
You bet! You can use On Current as you see in this video. One way you can do it is to use If.. Then.. End If to change your control properties based on values in your fields. ie. Something like: If Me!txtPartType = "Axle" Then Me!txtAutoSet.Visible = False Me!cboAxleSize.BackColor = vbRed End If
@henrysen-opoku1090
@henrysen-opoku1090 2 жыл бұрын
Hello Sean, on a form with several combo boxes for filter; how do we load the form without its visible row before we start to filter. Thank you for your invaluable assistance.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
One trick is to set the DataSource of the form to something like: Select * From MyTable Where ID = 0; So, the initial load is empty but then has entries when you proceed to filter.
@larrywelch9359
@larrywelch9359 3 жыл бұрын
Do you have or know of any available course that I might purchase pertaining to: MS Access, VBA Code, creating a function that will set the ActiveForm and ActiveControl (of function) that can be used on the current open form. Thanks in advance
@seanmackenziedataengineering
@seanmackenziedataengineering 3 жыл бұрын
Not that I know of.. this is a good idea for a video though! Thanks!
@jot2243
@jot2243 2 жыл бұрын
Hi Sean. I was trying to change the form to launch my MS-Access to a particular form (In the Access option, Current Database Tab) but each time and I did that, I got this warning message "The value of a Display Form property was invalid and was not saved" and it returns the value to none even though I have done it countless times before now. It won't change even if I open it again and change it to the form I want. I need your help to resolve this issue as I am stuck. Thanks
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
You probably need to open your database in exclusive mode. Someone (even you perhaps) may have another database lock open on the file. Open Access > Open > Browse > in the dropdown next to Open, choose Open Exclusive If you can't, you may need to ask others to close the file or restart your machine to remove the lock.
@shafiqueahmad9024
@shafiqueahmad9024 3 жыл бұрын
It's very interesting and helping
@seanmackenziedataengineering
@seanmackenziedataengineering 3 жыл бұрын
Glad it was helpful!
@weirdfun1441
@weirdfun1441 Жыл бұрын
What is ON Dirty event?
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
When you have a bound form, for example, an employee form. When you start typing into text or selecting values in bound controls, but the record has not been saved yet, the form becomes Dirty. OnDirty is an event that you can put some code in when the form becomes dirty. Somebody starts typing into a text box will trigger the event. Good idea for a video 🛠
@Calicrazedbeats
@Calicrazedbeats 10 күн бұрын
Nice wallpaper
@dbdata9836
@dbdata9836 3 жыл бұрын
thanks
@seanmackenziedataengineering
@seanmackenziedataengineering 3 жыл бұрын
You're welcome! Glad you enjoyed it.
How to Add Combo Box Rows On-The-Fly in MS Access
13:05
Sean MacKenzie Data Engineering
Рет қаралды 2,5 М.
Getting Started with MS Access Visual Basic for Applications - VBA Code-Behind and Modules
32:06
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
How to Determine if a Form is Loaded (Open) in Microsoft Access
16:51
Computer Learning Zone
Рет қаралды 3,6 М.
How to Make a Multi-Term Search Form and Report in MS Access
38:16
Sean MacKenzie Data Engineering
Рет қаралды 10 М.
How to Make Cascading Combo Boxes in MS Access
16:08
Sean MacKenzie Data Engineering
Рет қаралды 32 М.
How to use Microsoft Access - Beginner Tutorial
31:07
Kevin Stratvert
Рет қаралды 3,4 МЛН
A Better Solution Than the On Filter Event in Microsoft Access Forms
29:42
Computer Learning Zone
Рет қаралды 7 М.
Microsoft Access - Enhanced Message Box
18:11
D Pineault - Tech, Programming and more
Рет қаралды 2,1 М.
how to run Access form Automatically as Full Screen | Very Simple Methods.
9:47
Jamal Programming Tips
Рет қаралды 34 М.
How to PASS a data or value from 1 Form to another Form in Ms Access.
8:37
Edcelle John Gulfan
Рет қаралды 9 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.