53. VBA - Recordsets Part 1 (Programming In Microsoft Access 2013) 🎓

  Рет қаралды 175,036

Programming Made EZ

Programming Made EZ

Күн бұрын

A newer version of this series has started for Microsoft Access 2016 here:
• Microsoft Access 2016 ...
----------
Recordsets in "Programming in Microsoft Access 2013". Hosted by Steve Bishop.
In this free beginner video tutorial series Steve will be going over Database Development in Access, creating the User Interface, and coding the backend of the application in Visual Basic for Applications (VBA).
Click here for the full playlist of "Programming in Access 2013"
• Programming in Microso...
Click here for the Work Files of this series:
github.com/Xipooo/Programming...
----------
Become a member today for only $5 a month!
/ @programmingmadeez
When you join, here’s what you’ll get:
* Your name in the credits
* A form to ask me for help on your project
* 10% off in the Teespring store (discount code)
----------
Looking for DAILY news and commentary? Join us on my other channel “Coffee With Steve” for daily videos where we discuss Technology, Software Development, Politics, Culture, and many other things.
Coffee With Steve: / @coffeewithsteve

Пікірлер: 105
@ProgrammingMadeEZ
@ProgrammingMadeEZ 5 жыл бұрын
Looking for DAILY news and commentary? Join us on my other channel “Coffee With Steve” for daily videos where we discuss Technology, Software Development, Politics, Culture, and many other things. Coffee With Steve: kzbin.info/door/eXAUvo5xxDY_b-lSknPC1A
@artsafari8157
@artsafari8157 8 жыл бұрын
I searched far and wide for videos explaining Access and VBA. I did purchase some books but your videos explain the processes in a simple, clear and thorough manner. I really appreciate it. My only regret is having to suffer through other youtubers before finding your page. Your channel should be the top result when someone searches youtube for Access help. Keep up the great work!
@mahanpathak24
@mahanpathak24 9 жыл бұрын
You are a natural trainer. Very good method, examples and flow throughout the series.
@ProgrammingMadeEZ
@ProgrammingMadeEZ 9 жыл бұрын
Thank you very much for the kind words. I'm glad you are enjoying the series.
@andromedats
@andromedats 9 жыл бұрын
Thank you so much! this video helped me so much!! congratz for you awesome work!
@tomdytrych
@tomdytrych 5 жыл бұрын
This an excellent training source. You make it so easy to understand. Thank you.
@camandjacoby603
@camandjacoby603 7 жыл бұрын
Thank you so much I'm new to Access and have been trying to figure out how to do this for a bit now.
@joybinion1285
@joybinion1285 8 жыл бұрын
Excellent Videos! Thank you! Please continue
@EastArtBat
@EastArtBat 9 жыл бұрын
It's simply perfect, thank you !
@daniellepaz2906
@daniellepaz2906 7 жыл бұрын
I'm using yung Videos as reference. I'm a beginner and you really help me out. Thanks!
@michaelliang8601
@michaelliang8601 6 жыл бұрын
SO FAR I THINK U TEACH THE MOST ADVANCED LEVEL IN MS ACCESS VBA CODE. I M VERY IMPRESS. THANK YOU FOR YOUR TEACHING.
@daxvilbar7761
@daxvilbar7761 6 жыл бұрын
Loved your video.. Very well explained, defined, etc. tutorial.. My big thanks
@DolittleZoo
@DolittleZoo 5 жыл бұрын
Really great video. Can't believe how you made it so easy!
@TomMCgames
@TomMCgames 9 жыл бұрын
Awesome video! You are helping alot of people ;)
@campeonperron
@campeonperron 2 жыл бұрын
Thaks alot for the video. Your explanation is very clear and useful.
@jordanfrey9109
@jordanfrey9109 6 жыл бұрын
Very good video. Thanks for the upload!
@df4250
@df4250 7 жыл бұрын
A very excellent set of videos and very well explained. Well Done.
@ProgrammingMadeEZ
@ProgrammingMadeEZ 7 жыл бұрын
Thank you!
@antongreffrath3581
@antongreffrath3581 7 жыл бұрын
Hi Steve All your videos are exceptional. Thanks for all the time you spend on this learning initiative. Quick question, do you have any videos/learning material on Command Bars and Popup menus?
@zhoudan4387
@zhoudan4387 5 жыл бұрын
I’m gonna go ahead and tell you please go ahead and keep doing this videos!
@mrez0
@mrez0 4 жыл бұрын
Thanks, that is the best video course on that subject
@Adnan_Khan24
@Adnan_Khan24 8 жыл бұрын
Great excelent video.
@alitalib1351
@alitalib1351 Жыл бұрын
Thank you very much I learned a lot from you
@TheAnthonychalloner
@TheAnthonychalloner 7 жыл бұрын
Thanks for your knowledge and support Steve Regards Tony
@ProgrammingMadeEZ
@ProgrammingMadeEZ 7 жыл бұрын
You're welcome! Glad you enjoy the videos.
@2346ertyu
@2346ertyu 5 ай бұрын
Bundle of Thanks to you dear
@JCAlexandres
@JCAlexandres Жыл бұрын
SQL = Structured Query Language 😉 by the way, thank you for sharing and setting these lessons open for people to learn, WTG!
@hottmesss3318
@hottmesss3318 3 жыл бұрын
nice oneee 👌
@loom-age330
@loom-age330 9 ай бұрын
Thanks a lot
@kadekrenipuspawati9652
@kadekrenipuspawati9652 3 жыл бұрын
Thank you sir
@JDKing-oe7jj
@JDKing-oe7jj 7 жыл бұрын
Thanks for a very well explained and easy to follow set of tutorials. I have a question sort of related to this series of tutorials. I’m trying to do a dlookup on multiple item selected in a multi select list box and then pass those values to another form or report. For example in my listbox is my list of client names. I want to select multiple clients, perform a dlookup to get the clients address and phone number and then have those values displayed on another form or report. Can you point me in the right direction?
@SamnangIdea
@SamnangIdea 3 жыл бұрын
VERY GOOD DEAR
@Tarun.g
@Tarun.g 8 жыл бұрын
Thanks Steve.... I am learning ACCESS VBA from your videos. You might not have thought your videos can actually save someone's job. In my current job, I have been to asked to manage few complex Access database whereas I am DB user with little VBA (Excel) knowledge. Kindly let me know if you also provide private sessions for these videos. As mentioned by others, you are a Godsend for many.
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 жыл бұрын
I don't give out private lessons because most of the time people want work done on their database. Unfortunately I cannot work on a database outside of work since I would then be competing against my employer. I can answer questions with regards to the videos, but I cannot do any work on a database without charging through my employer.
@Tarun.g
@Tarun.g 8 жыл бұрын
Ok thanks Steve...
@bsquochoainew
@bsquochoainew 4 жыл бұрын
I'm working with access 2019, i want to implement a webcam to a form to capture image of my employees. Please give me some sugestions, thank you so much.
@shamimsworld1303
@shamimsworld1303 4 жыл бұрын
Hello! Steve. Thanks a lot for your video. I am able to save data into table using this way. But how can I save image in database with data? Will you please help me?
@shafiushaibu6881
@shafiushaibu6881 6 жыл бұрын
Hi Steve! Thanks for the great work. You are one of my Access Heros. I have learnt a lot from you and want to thank you for the knowledge shared. Please I want to utilize the list box that I generated from the record set tutorial. I want to evaluate, on the click of a button, whether a value a user enters into a text box is among the items in the list box. I want to return a message to say "the item is not part of the list". Please help me with this. Kind regards, Shafiu.
@wattjock2405
@wattjock2405 2 ай бұрын
Thank you for the video series! @17:42 I get: Run-Time Error '94' Invalid Use of Null My code is exactly as yours yet I didn't see that you get that Error Message... ? Do I put in Error Handling of Resume Next to skip over Null values? For now, I went and filled in the Null records.
@KHBrainTV
@KHBrainTV 7 ай бұрын
Can you make more Video for Topics relate to Recordset sir.
@Erika-tq1jo
@Erika-tq1jo 6 жыл бұрын
I am trying to populate a multicolumn combo box. I have the first column populating as shown in your video. How do you get the 2nd column to populate? Thanks!
@jeffreyjansen
@jeffreyjansen 7 жыл бұрын
Hello Steve, thanks again for your great video's. I have een specific question about this subject. I want to fill a field in a query with values from another table that meet some specific criteria. To be more specific: I have a table called tblTime with fields ID and Time (that contains values like 0:00, 0:15, 0:30 ....23:45). Another query holds fields like StartShow (short time), EndShow (short time), Stage_ID, Act_ID. I like to have some sort of output (a list or table) that contains ALL the values of the field Time and in the field Stage_ID the values of Stage_ID only when Time is between StartShow (>=) and EndShow (
@jsk4774
@jsk4774 2 жыл бұрын
Hi Steve, Fantastic video lessons. Thank YOU. Can you tell me how do I reference a field on a continuous form using VBA? I tried using examples give on your Recordset video, but it didn't work. I ran into trouble when I set rs = db.openrecordset ("queryname") it saying there is missing parameter. Your example is simply enough to follow, so dont know what I did wrong, the only think I could think of is that my query is a parameter query. So not sure if your example is applicable to parameter query? Please help
@Chopy61
@Chopy61 6 жыл бұрын
May I ask what the are advantages of using Recordsets?
@larrywelch9359
@larrywelch9359 2 жыл бұрын
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.
@sharmaneaurora6332
@sharmaneaurora6332 2 жыл бұрын
Hello Steve, how to use recordset for linked tables
@arlettepwatsonify
@arlettepwatsonify 6 жыл бұрын
Thank you for this video!I'm not sure if you are still reading this thread, but in case you are. I've reached Part 3 of this video and was following just fine but I am now getting Error code 94 (Invalid Use of Null) on the Step: me.lstUser rs!UserLoginWhat am I missing here?
@jayd3578
@jayd3578 3 жыл бұрын
is there a way of setting a maximum number of records to 1000. eg records go from 0 to 999. thereis no 1000 or 1001 allowed? can you help?
@Leonardo-ih9iy
@Leonardo-ih9iy 5 жыл бұрын
Hi Steve, super Job!! One question. I have a query which selects 1000 datasets. I like to add 1 new dataset, WITHOUT selecting all the others. I mean, if I do rs.AddNew -> and check rs.recordcount -> 1001 records, but I only want to have 1 record. It must also be possible rs.MoveFirst and rs.edit. Thanks a lot in advance!
@kaaa3485
@kaaa3485 3 жыл бұрын
Thank you so much for the video. it was very helpful. I have a question. I created a bottom in access to update the tables and it was working fine but know it show me an error (Run-time Error '3052' "file sharing lock count exceeded. Increase Maxlocksperfile registry entry). I went and increased and used "ffffffff" (8 f) using Regedit.exe but it still get the message. this is one of my coding. Do I need to do anything else? Set rsglobal = dbs.OpenRecordset(SQL, dbOpenDynaset) Thanks in advance!!!
@singda9803
@singda9803 9 жыл бұрын
Dear steve , i have this problem and stuck on it from some days, while writing code on vba after i wrote set rs = db. It doesnot gives me option (properties) neither parenthesis later and also after typing me. Same thing happens no option to see, and while debugging compile service it shows compile error on Dim (db As Database) i.e error on bracket db as database, i tried the workfile its ok on that but doesnot work on my file, could u plz suggest me, thank you.
@aaronaaronaaron5922
@aaronaaronaaron5922 9 жыл бұрын
Hi Steve! Thank you again for your excelent videos. I have a little question: How can i add more than one column to my listbox? Nice day
@ProgrammingMadeEZ
@ProgrammingMadeEZ 9 жыл бұрын
aaron aaron aaron Just add it to the source query and increase the column number property of the listbox.
@jackmiller8227
@jackmiller8227 4 жыл бұрын
Note: SQL = "Structured Query Language" You asked in the video...
@richardiru9587
@richardiru9587 3 жыл бұрын
Hi would this work for Office 365?
@tamalchakraborty1277
@tamalchakraborty1277 2 жыл бұрын
Sir, how can I generate a list of defaulters in student database in access. Fees are supposed to be deposited every month. So, after a period say six months we need to know the names of the students who have not deposited the fees in time.
@radiusbecka1799
@radiusbecka1799 2 жыл бұрын
This works for combo boxes too if anyone is wandering
@TheRizwaanraja
@TheRizwaanraja 7 жыл бұрын
HI Steve, Firstly I just wanted to say that i really appreciate you taking the time to put these videos together. I have been using them to build my own db for a part time school.. The issue is that for some reason any macro / vb event /subform that i add to a form i get OLE / ActiveX errors "A problem occurred while MyDB was communicating with the OLE server or activeX control" I have migrated to a new DB and still have the issue (eventually), I scrapped the problem form and rebuilt it.. Same issue... I have found a multitude of articles online regarding other users that encountered the same issues but the workarounds dont work for me! Just wanted to know if you have come across this before? Regards, Riz
@ProgrammingMadeEZ
@ProgrammingMadeEZ 7 жыл бұрын
There are simply too many reasons this could be happening for me to even venture a guess. YOu would need to be much more specific about when the error occurs and what the code is trying to do when it happens.
@Moriarity09
@Moriarity09 3 жыл бұрын
I am using the RowSource Property for my ListBox but the columns show in reverse order . Any suggestions to fix this ?
@tajani59
@tajani59 7 жыл бұрын
Excellent Job, keep it up, i am developer in VFP for last 10- years, I am going through your training, you did mention trim(a) or alltrim,, how do you do substring(a) if a="abcdef", you just want "abc" in vfp we use substr(a,1,3)?
@ProgrammingMadeEZ
@ProgrammingMadeEZ 7 жыл бұрын
I did not discuss Trim as I recall, but it's very easy. It's a built in function of Access. Trim(" MyAccessString ") converts to "MyAccessString". As for substring, the VBA version is mid()
@aberseak
@aberseak 5 жыл бұрын
i get a runtime error 3709 search key not found in any record when i use this. i cant find a solution. it occurs on the next line after the rs.eof
@leomaredcampos4941
@leomaredcampos4941 6 жыл бұрын
now how to split that?
@michaelliang8601
@michaelliang8601 6 жыл бұрын
CAN YOU COVER DICTIONARY COLLECTION ?
@nawidahmadnoori737
@nawidahmadnoori737 5 жыл бұрын
How to save the result of a query into a variable
@danielpaulukinas9148
@danielpaulukinas9148 8 жыл бұрын
Hi Steve, Do you have a video on how to extract data from a current form, which is controlled by a query and import the data into the body of an email? I tried the PDF and/or HTML attachments, but this does not work in our application. Your video series on the VBA coding is great. Thanks Dan
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 жыл бұрын
Not anything that specific, but I have videos on how to generate emails and attach files.
@D3_Business_Analytics
@D3_Business_Analytics 6 жыл бұрын
i cannot define rs as recordset.....it says user defined type not defined
@SSH5000
@SSH5000 7 жыл бұрын
thank, this is really awesome; but I have a question, should we close the recordset ?
@ProgrammingMadeEZ
@ProgrammingMadeEZ 7 жыл бұрын
Should is the operative word. You don't have to, but you probably should to free up the memory immediately.
@df4250
@df4250 7 жыл бұрын
Just one question about populating the list box with the Me!lstEmployees.AddItem rs!UserName command - If I've set up the list box to display more than one column, what is the syntax for populating the second (or subsequent) columns?
@ProgrammingMadeEZ
@ProgrammingMadeEZ 7 жыл бұрын
You would use a semi-colon to distinguish between each column
@anjanaboddu8705
@anjanaboddu8705 6 жыл бұрын
PLEASE HELP ME IN FIXING THIS DCOUNT("[PROJECT_NUMBER]", "[JP_PO_VENDOR_INFO_TABLE]", "[PROJECT_NUMBER] =' " & Me.PROJECT_NUMBER & " ' " And "[PO_NUMBER] = " & Me.PO_NUMBER) USING THIS IN MACRO BUILDER WHERE [PROJECT_NUMBER ] IS STRING AND[ PO_ NUMBER] IS NUMBER
@tigerdataimarticus7088
@tigerdataimarticus7088 3 жыл бұрын
Showing error "too few argument required" on when set rs
@jerhummemarcelo7194
@jerhummemarcelo7194 8 жыл бұрын
hi mr. steve bishop, in adding items in recordset what should be the code if you want to retrieve all the records in a table not only the username for example. In the me.lstbox.additem rs("username")? thanks so much
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 жыл бұрын
+Jerhumme Marcelo I'm not understanding your question. First you are saying your adding items to a recordset, but then you're asking how to retrieve them. I don't understand.
@jerhummemarcelo7194
@jerhummemarcelo7194 8 жыл бұрын
+Programming what i was trying to say was when want to display data in listbox for all the columns in the table reference or the recordset table
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 жыл бұрын
Well if I'm just going to make a query/table display to a listbox I usually just set it as the rowsource. You can also set the recordset directly to the listbox which I demonstrate how to do in my advanced series. But there is a third way to do this and that's by converting your recordset into one long semi-colon separated value string and set it as the rowsource after changing the list box to a value's list.
@jerhummemarcelo7194
@jerhummemarcelo7194 8 жыл бұрын
+Programming ok I think ill just go by setting the table as its rowsource thanks mr bishop
@kabukijoe99
@kabukijoe99 3 жыл бұрын
Hi. thanks for the lessons. Can you help me please? I have a table in database and i wan to take a value from "x" field an put it in a "y" field. my code looks like this (prnt.sc/vxu48v), but i have an error "update or cancelupdate without addnew or edit" What I do wrong? Thank you
@bee333wasp
@bee333wasp 8 жыл бұрын
Hi Steve, I used this technique to populate a combo box for selecting a record on a form, but I notice that any name in my text field which contains a comma (for example, "4.1.2 Name, Role, Value"--it's a db for web accessibility information) is truncated before the first comma. This means they won't find any match in the records. Any idea how to get the full string content of the field into the list? (Also, I find double clicks handy for quickly inserting [Event Procedure] and toggling property options, in case this is new information.) Cheers, Chris P.S. Your course is exactly the kind of program which should be on lynda.com--it's far superior to anything they have presently!
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 жыл бұрын
Thank you Chris. I know I could probably got to Lynda or Pluralsight and post videos there, but I am trying to share my knowledge with others freely. I don't like the idea of keeping the information to only those who can afford it. As for the comma's in the data, you can use the Replace function to replace a comma in the data with char(44). This will display as a comma, but the data will be a char function.
@bee333wasp
@bee333wasp 8 жыл бұрын
We're lucky in Auckland New Zealand that the public library gives its members free access to lynda.com. But you're right, I agree it's a great public service you are offering and I am very grateful indeed. As for commas, I added to the Do Until loop Me.cboSelect.AddItem Replace(rs("SuccessCriterionName"), ",", Chr(44)) , but the result is the same, truncated names! Even swapping out the record source with a query in which I'd updated the all the names containing commas didn't work. So I'm stumped for now.
@BlondishTony
@BlondishTony 7 жыл бұрын
Hi i have a doubt, the thing is that when i try to run my code it tells me the following error "Run-time error '3061': Too few parameters. Expected 4." And i don't understand where my problem is since i pretty much copied your code on mine. Here is my code: Dim db As Database Dim rs As Recordset Private Sub boton1_Click() Set db = CurrentDb Set rs = db.OpenRecordset("SaldoCap", dbOpenDynaset, dbSeeChanges) The line where i state the "OpenRecordset" command is where i get the error. Any help?
@MRGhass
@MRGhass 6 жыл бұрын
I received the same error please any help guys?
@tamirmoav3774
@tamirmoav3774 3 жыл бұрын
he insisted on 4 paramaters and not 3 as you showed. why?
@prabhumurugan8279
@prabhumurugan8279 4 жыл бұрын
How to avoid bloating after the Dao query is executed
@ProgrammingMadeEZ
@ProgrammingMadeEZ 4 жыл бұрын
Bloating?
@jbrendanpeters
@jbrendanpeters 8 жыл бұрын
Thanks for your knowledge and support Steve Regards JohnP
@ProgrammingMadeEZ
@ProgrammingMadeEZ 8 жыл бұрын
And thank you for supporting me!
@kadekrenipuspawati9652
@kadekrenipuspawati9652 3 жыл бұрын
Thank you sir
@singda9803
@singda9803 9 жыл бұрын
Dear steve , i have this problem and stuck on it from some days, while writing code on vba after i wrote set rs = db. It doesnot gives me option (properties) neither parenthesis later and also after typing me. Same thing happens no option to see, and while debugging compile service it shows compile error on Dim (db As Database) i.e error on bracket db as database, i tried the workfile its ok on that but doesnot work on my file, could u plz suggest me, thank you.
@ProgrammingMadeEZ
@ProgrammingMadeEZ 9 жыл бұрын
+bijay rai Three things. Make sure you are defining rs as a recordset. Also, make sure you are setting db = currentdb. Lastly, you may have to use DAO.Database and DAO.recordset when defining db and rs.
@singda9803
@singda9803 9 жыл бұрын
Is it because im using ms access 2013?
@singda9803
@singda9803 9 жыл бұрын
And why my Me. Is not showing available properties and list box, text box?
@singda9803
@singda9803 9 жыл бұрын
DAO. Worked thank you
@singda9803
@singda9803 9 жыл бұрын
+Dear steve, my problem is solved, but i have a question that why i need to write DAO. Before database and recordset?
54. VBA - Recordsets Part 2 (Programming In Access 2013)
21:38
Programming Made EZ
Рет қаралды 96 М.
Understanding Recordsets in Microsoft Access VBA - a Beginner's Guide
20:48
Computer Learning Zone
Рет қаралды 7 М.
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 60 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 101 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 39 МЛН
Microsoft Access Tips | How to EDIT Records using VBA Recordsets
17:46
How to Open a RecordSet in Access VBA and Loop Through the Records
12:45
Sean MacKenzie Data Engineering
Рет қаралды 25 М.
40. VBA - DoCmd (Programming In Microsoft Access 2013) 🎓
37:27
Programming Made EZ
Рет қаралды 179 М.
Working With Recordsets in VBA
15:51
Advantage Applications
Рет қаралды 3,6 М.
57. Splitting Our Database (Programming In Microsoft Access 2013) 🎓
18:35
Programming Made EZ
Рет қаралды 181 М.
Send serial email with Access, VBA and Outlook
20:43
codekabinett.com/en
Рет қаралды 33 М.
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 60 МЛН