How to Use Form and Subform Variables in Microsoft Access

  Рет қаралды 5,177

Sean MacKenzie Data Engineering

Sean MacKenzie Data Engineering

Күн бұрын

Пікірлер: 22
@interestingamerican3100
@interestingamerican3100 2 жыл бұрын
Commenting for the algorithm. Love the content! I learn every time I watch.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Awesome! Thank you!
@pwestphotography
@pwestphotography 2 жыл бұрын
Make so much sense when it is well presented - love the videos
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Thanks Paul!
@rogerio74c
@rogerio74c 2 жыл бұрын
Wow! Fantastic! Love to know that! Access doesnt stop to surprise me.
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Glad it helped! Cheers
@EstoYOtro
@EstoYOtro Жыл бұрын
Certainly a way to go. IF. If the line 'Set frm = Forms(strForm)' would work (4:20). On all my machines, it produces Error 438, Object doesn't support this property or Method. And yes, I used exactly your code. Any idea?
@seanmackenziedataengineering
@seanmackenziedataengineering Жыл бұрын
In the code, when you go Tools > References, what entries are checked off there?
@EstoYOtro
@EstoYOtro Жыл бұрын
Sean, thanks for coming back to my problem. I thought about the references as well, but I found the error, and it's absolutely weird: The form I put the code into had a tab-control. Once I deleted that, all was working fine. Go figure...@@seanmackenziedataengineering
@jim27105
@jim27105 2 жыл бұрын
I would like to use a subform to display various forms, which the user can run a query from. In other words the subform ‘window’ would just display form 1, form 2, form 3. It seems like it would be easy to do but all the videos i find are for data entry, not navigation. Any suggestions or perhaps a future tutorial?
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Interesting idea. You may be able to change the control source for the subform control in order to switch the subform viewed. As an alternative, you may want to use the tab control, then put different subforms on each tab. You can control which tab is shown, based on some criteria on the parent form.
@ibrahimalrabiah1179
@ibrahimalrabiah1179 2 жыл бұрын
Nice, but I have figured a problem it works once for me . After a while ( Dim as Form ) stopped working , so I replaced all controls to Full original bath FORMS!Mainform!CboResult , like that and it works again , is there any solution to find what stopped the Dim FORM FROM WORKING , THANKS
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Interesting! Yes, if you have frm as Form A, referring to another open form B, but that form B is closed (and reopened), the reference in form A will break. This is also true if you refer to forms from a Sub or Function in a module.
@jerrydfowler3480
@jerrydfowler3480 2 жыл бұрын
Sean could this be used to open a form and give it a certain Record Source? I have a form that I could use with multiple queries. One is just for members that have emails and one is for those that don't or rather get item per the mail. So when I choose one button I would like it to open the form and give it the email records, or I choose another button and open the same form but with records without emails or prefer mail. Thanks for you top notch videos
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Great question. Indeed, you can swap out the Record Source at runtime in order to change the records you are working with. When doing this exercise, you can check out the properties when you type frm. The dot after frm will let you see different properties. One of them is Record Source. Put in an alternate SQL statement and it will switch the view. Alternatively, if the different views are all from the same table, you can set the form filters instead. Like this video: kzbin.info/www/bejne/q6KWlJqXfatpnMU
@dbdata9836
@dbdata9836 2 жыл бұрын
thankssss
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
You’re welcome!
@dbdata9836
@dbdata9836 2 жыл бұрын
10/10
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Thanks!
@dbdata9836
@dbdata9836 2 жыл бұрын
great
@seanmackenziedataengineering
@seanmackenziedataengineering 2 жыл бұрын
Thx!
@alikayn
@alikayn Ай бұрын
Your content is good, but seriously, your laconic delivery meant that I kept having to stop the video and do anything else because it was boring to wait (pause) for (pause) each (pause) and (pause) every (pause) word. Can't you be a bit more enthusiastic and pacey? Faster delivery gets the message into the brains of the audience more effectively (see Accelerated Learning techniques). Repeating an idea is better, restating an idea, but just dragging it out suggests that you know it's boring, but don't respect the time and intelligence of your audience.
How to Create a Multi-Column Combo Box in MS Access, Adjust the Width and Bind it to the Table
15:41
How to Use Global Variables in Microsoft Access VBA
13:25
Sean MacKenzie Data Engineering
Рет қаралды 9 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 14 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
How to Use DLookup in Microsoft Access
15:48
Sean MacKenzie Data Engineering
Рет қаралды 20 М.
How to Make Cascading Combo Boxes in MS Access
16:08
Sean MacKenzie Data Engineering
Рет қаралды 32 М.
Getting Started with MS Access Visual Basic for Applications - VBA Code-Behind and Modules
32:06
How to Open a RecordSet in Access VBA and Loop Through the Records
12:45
Sean MacKenzie Data Engineering
Рет қаралды 27 М.
How to Create and Modify QueryDefs Programmatically in your MS Access Database
12:03
Sean MacKenzie Data Engineering
Рет қаралды 5 М.