No video

How to Specify a Form Field's Default Value from VBA Code in Microsoft Access

  Рет қаралды 3,834

Computer Learning Zone

Computer Learning Zone

Күн бұрын

Пікірлер: 13
@Shadow.Dragon
@Shadow.Dragon Жыл бұрын
Great video and timely! I was just working on a form and ran into this issue. So I do what I usually do...I go to your KZbin site and search for the answer. I found your "Variable" video and discovered "TempVars". Problem solved!!!
@saneneweyes6189
@saneneweyes6189 Жыл бұрын
This is actually really helpful, considering I was trying to figure out how to consolidate multiple "person" or "license types" into a singular table. This is giving me the idea to have different forms for each "person type" and loading the person type as a default hidden field for each form. I was trying to figure out a way to do this forever. I even asked the forum, but I must not have been explaining myself very well. Know I could use a singular table and have my end user select the person or license type... but I wanted to put it together in a way where it appears as separate databases but everything can come together without having to use some clunky union query.
@599CD
@599CD Жыл бұрын
Yeah when in doubt use a single table and just have a field that differentiates between the different types. I see this a lot people want to take different types of the same thing and make multiple tables out of them. It's just like when people have a spreadsheet in Excel that has their expenses in different years that are different sheets and they try to bring that into Access as individual tables and that's not how it should work. I've got a whole separate video coming up on this too.
@janvanantwerp6574
@janvanantwerp6574 8 ай бұрын
CHK. My problem solved. Allso using tempvars. Tks. Live long & proper.
@599CD
@599CD 8 ай бұрын
You're very welcome peace and long life
@nlt-g3v
@nlt-g3v Жыл бұрын
The method that I use is to make a public function that returns the public variable and then using this function as the default value! It is more clear.
@nickbroekhuizen8858
@nickbroekhuizen8858 Жыл бұрын
Thanks, Richard. I always used constants, will definitively change to dimvars ... (did not know about them .. 🙈)
@599CD
@599CD Жыл бұрын
They each have their pros and cons and I'll be talking about them in a future video - I wouldn't completely rewrite your database and get rid of all the constants, but moving forward considered tempVars
@nickbroekhuizen8858
@nickbroekhuizen8858 Жыл бұрын
@@599CD I use my constants a bit differently, I declare them as an integer and use the select case routines to determine which forms/input boxes and buttons must be visible or not.
@darrenbade9679
@darrenbade9679 Жыл бұрын
I've been watching a lot of your Access videos recently. I really like them and they have been a good advertisement for your paid content. I do want to comment however that while your free content has made me want to become a member or purchase some content, the complexity of your memberships and pricing has kept me away. I have gone to your website twice with the intent of buying something. After about 3 or 4 clicks I finally find a price, but then find that it might be discounted with a membership, then a few more clicks to see if I can find a membership price, and before I even get there I have to answer questions about how many courses I want per week... Sorry no, I just wanted to buy something to watch. Respectfully, you need some "BUY NOW!" buttons, or just clearer upfront pricing so one can quickly do the calculus on what works for them so we can get on with watching the stuff.
@599CD
@599CD Жыл бұрын
Yeah my different membership offerings can be a little confusing because I've tried to have something for everyone and I've added different membership programs over the years as time has gone by and I don't just want to kill an old membership program that lots of people are already signed up for to add something new. But in any case if all you're looking to do is buy one of my courses there is a standard order form at 599cd.com/Order and you can just buy whatever you want there. As far as the other membership options go this page explains them all in detail: 599cd.com/Join.
@599CD
@599CD Жыл бұрын
599cd.com/qq
@darrenbade9679
@darrenbade9679 Жыл бұрын
@@599CD Thanks for taking the time to respond. Now I have to buy something!😁
How to Tell if Your Microsoft Access Database is Running From a Trusted Folder
16:00
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 15 МЛН
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 7 МЛН
wow so cute 🥰
00:20
dednahype
Рет қаралды 29 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 157 МЛН
Automatic Form Resizing in Access
1:07:41
DAAUG
Рет қаралды 3,1 М.
Getting Started with MS Access Visual Basic for Applications - VBA Code-Behind and Modules
32:06
PowerApps set default value based on another field from a dropdown
21:52
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 354 М.
An Introduction to VBA Code in Microsoft Access
9:51
MyExcelOnline.com
Рет қаралды 17 М.
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 15 МЛН