LearnAccessByCrystal
LearnAccessByCrystal
  • Видео 127
  • Просмотров 1 110 808
How does Bubble Sort work?
When you have an array of values, how can you use VBA to sort them?
Download simple Bubble Sort VBA code as well as code to sort a 2-dimensional array by any column
msaccessgurus.com/VBA/Array_Sort2D.htm
00:01 How does Bubble Sort work?
00:38 array of string values is passed to the BubbleSort procedure
00:52 dimension variables
01:47 use LBound to get first row of array
01:59 use UBound to get last row of array
02:10 number of rows
02:31 set the last row to compare
02:37 outer DO loop
02:46 inner FOR loop
02:59 iRow is the current row
03:08 compare values
03:41 increment the swap counter if values swapped
04:23 exit the outer DO loop if no swaps made
04:28 decremented last row by 1
04:35 reset swap counte...
Просмотров: 172

Видео

SQL Spacer VBA and Access Add-in
Просмотров 70111 месяцев назад
Quickly make SQL Statements easier to understand by inserting spaces and line breaks where it makes sense. Untangle logic, inspect something that was constructed in VBA and doesn't work quite right, create documentation, and more. You can run the VBA code and get the result to put somewhere yourself, or use the add-in for a convenient form. On the Menu form that opens, simply paste an SQL state...
HowTo Draw Birthday Balloons in Access
Просмотров 430Год назад
Access is more than information management. It can be a fun drawing tool too. Draw birthday balloons for special folks in your life. I met online with other Access developers in the Bay area. This is a recording of part of that meeting since it was Steve's birthday! We modified a PartyWords table in my Birthday Balloons database to have words that are relevent for Steve, and then Access made a ...
Report Draw Reference for Access
Просмотров 408Год назад
Access reports don't have to be boring lists of numbers, they can come to life with drawings. Here is a web page with my notes as I was learning about drawing on Access reports. It has syntax, values, and explanations. I hope it will be a good reference for you too. Report Draw Reference msaccessgurus.com/VBA/ReportDraw_Reference.htm 00:00 Access Report Draw Reference on MsAccessGurus.com 00:06...
Draw the Moon on Access Reports using VBA
Просмотров 324Год назад
Draw the moon on Access reports using VBA in any phase, any position, any color, any size! VBA code that's easy to call from your reports. Access is only limited by your imagination. Send the report object, coordinate for the center and radius for the Moon. Optionally, you can choose colors, fraction covered in light, and waxing or waning. The code that does the drawing is all in one module tha...
Draw a Rainbow on Access Reports
Просмотров 347Год назад
Learn how to draw rainbows on Access reports! Use them as indicators. Download the VBA code and sample database here: Download: msaccessgurus.com/VBA/Draw_Rainbow.htm Report Draw Reference and VBA Syntax msaccessgurus.com/VBA/ReportDraw_Reference.htm The VBA code that does the drawing is all in one module that you can easily import into your projects. The Rainbow uses the Circle method. It's ea...
Read Word Selection using Access
Просмотров 427Год назад
Use Access to read information from the Word selection. Show the text that's selected on an Access form. If fields are found, document them. If fields are document properties (DOCPROPERTY), show the property name. This is part of an application to control Word Document Properties from Access. 00:01 I'm developing an application in Access to control values of document properties in Word. 00:18 s...
Draw Christmas Tree on Access Report
Просмотров 209Год назад
Draw a Christmas Tree with a star on top using VBA on an Access report. Send the report object, top center coordinate and height for the Christmas Tree. Optionally, you can choose colors. The code that does the drawing is all in one module that you can easily import into your projects. The Christmas Tree uses Circle and Line methods. The star uses Print. DOWNLOAD the Access ACCDB database and c...
Word Document Properties and Fields
Просмотров 12 тыс.Год назад
Word Document Properties (Built-in and Custom) are a great way to substitute data in your document all over! ... in many places or just one. When the value of a document property is changed, everywhere it is referenced also changes. No find and replace needed, just update the document! To insert a document property into your Word document, use a DOCPROPERTY field. Add format codes to the data a...
Send Email from Access ~ DataPig
Просмотров 1 тыс.Год назад
This video demonstrates the step by step use of the SendObject macro to add some email functionality to an application without code. In this example a weekly invoice report is created, and is automatically sent from Access to identified email recipients. In addition, the video shows how to loop through a recordset and send individual reports to individuals. The presenter uses step debugging to ...
Give Web Page feel to Access Forms with the Mouse Move event ~ DataPig
Просмотров 1,7 тыс.Год назад
Make labels on an Access form come alive. When the mouse hovers over the label, properties of the label are adjusted to change the color, font and font size. When the mouse moves off the label, those properties revert to their original values. The video shows 2 ways to set up this effect -first the long,tedious way and second the more efficient, private sub that can be called when needed. The r...
How to Create a basic Login Form ~ DataPig
Просмотров 395Год назад
This video demonstrates how to create a basic login form to require the user to "Login" to use the application. A table with fields userid and password is needed. Code behind a simple form checks that values for UserId and Password are entered. The code also checks that the supplied password matches the authorized value in the table. Failure to supply a value or to supply an incorrect value res...
Listbox trick in Access to Add or Remove items ~ DataPig
Просмотров 2,9 тыс.Год назад
This video demonstrates a technique to select items from a list and store them in a second list. It also shows how to remove an item(s) from the second list and return it to the first list. This example uses a single table with 2 fields. Field one has the item name, field two is an integer. It is the field two value, either 0 or 1, that is the trick to this technique. List1 rowsource deals with...
Filter Access Form to Show One or All Records ~ DataPig
Просмотров 6 тыс.Год назад
This video demonstrates a technique to filter records on a form. It uses a combobox whose RowSource has the unique companyId and companyName. Also the details of the combobox properties are described. With little code in the combobox after update event, a specific record is filtered and displayed. A button is added to the form and is used to clear the existing filter. By clearing the filter, al...
Expand and Contract ComboBox on Access Form ~ DataPig
Просмотров 1,5 тыс.Год назад
This video demonstrates how to design a combobox to automatically expand when it gets the focus. That is, although the combo has a default width when the form opens, it expands to show all columns when the user enters the combo. Also, when exiting the combo control, it returns to the smaller size conserving some screen real estate and a cleaner look. NOTE: instead of changing the combo width, y...
Date Criteria from Form for Query ~ DataPig
Просмотров 760Год назад
Date Criteria from Form for Query ~ DataPig
Custom Help System in Access ~ DataPig
Просмотров 345Год назад
Custom Help System in Access ~ DataPig
Create the "illusion" of Colored Tabs on an Access Form ~ DataPig
Просмотров 1,5 тыс.Год назад
Create the "illusion" of Colored Tabs on an Access Form ~ DataPig
Automatically Expand or Contract an Access form to Show More or Less Controls ~ DataPig
Просмотров 1,1 тыс.Год назад
Automatically Expand or Contract an Access form to Show More or Less Controls ~ DataPig
Enable and Disable Controls in Access ~ DataPig
Просмотров 4,3 тыс.Год назад
Enable and Disable Controls in Access ~ DataPig
Add Record with Query - data from controls on unbound form ~ DataPig
Просмотров 1,9 тыс.Год назад
Add Record with Query - data from controls on unbound form ~ DataPig
Conditional Formatting on an Access Form ~ DataPig
Просмотров 1,4 тыс.Год назад
Conditional Formatting on an Access Form ~ DataPig
Sort Access Form by Combobox Column
Просмотров 1,1 тыс.2 года назад
Sort Access Form by Combobox Column
Query Visualizations in Access ~ DataPig
Просмотров 7912 года назад
Query Visualizations in Access ~ DataPig
Using the ActiveX Web Browser Control in Access ~ DataPig
Просмотров 3,4 тыс.2 года назад
Using the ActiveX Web Browser Control in Access ~ DataPig
Using a Tab Control in Access ~ DataPig
Просмотров 1 тыс.2 года назад
Using a Tab Control in Access ~ DataPig
Popup Form to Edit Details in Access ~ DataPig
Просмотров 2,4 тыс.2 года назад
Popup Form to Edit Details in Access ~ DataPig
Access Main Form and Subform for data from tables Related in a 1 to Many Relationship ~ DataPig
Просмотров 1,5 тыс.2 года назад
Access Main Form and Subform for data from tables Related in a 1 to Many Relationship ~ DataPig
Startup Options to simplify User Interaction with the Access Application ~ DataPig
Просмотров 3782 года назад
Startup Options to simplify User Interaction with the Access Application ~ DataPig
Splash Screen form in Access that shows on start up ~ DataPig
Просмотров 4,7 тыс.2 года назад
Splash Screen form in Access that shows on start up ~ DataPig

Комментарии

  • @fome4862
    @fome4862 3 дня назад

    This was actually very helpful, thank you

  • @brianseng4029
    @brianseng4029 6 дней назад

    Hi Crystal! Thank you for sharing this! I'm having trouble getting this working in my own Access DB. My query joins linked ODBC tables from an external SQL Server DB and has all of the needed fields (CalDate, CalTitle, and all Text fields 1-3). The query runs correctly and shows my data in the datasheet viewer, but when plugging this query's name into the macro, no data shows in the generated calendar. The only thing that is properly printed is the calendar's title. Any ideas as to what's wrong?

  • @mrzaboor
    @mrzaboor 12 дней назад

    Welcome back🤩

  • @JosephDowski
    @JosephDowski 13 дней назад

    Love your content Crystal!❤😎

  • @emilythechef
    @emilythechef 15 дней назад

    So many cool lessons I didn't even know about in this video, thank you for the info!

  • @eduinescobar3577
    @eduinescobar3577 19 дней назад

    Thank you, simple tips but no one explain it, at least in Brazil videos.

  • @akp6811
    @akp6811 25 дней назад

    Thank you so much. This was so helpful

  • @garethholenstein2086
    @garethholenstein2086 29 дней назад

    It can be a special feeling when you experience that AHA! moment. I have been battling with Access for weeks and weeks, stumbling again and again on the basics because I was tasked with creating and maintaining a database at work, having no Access experience it has not been a fun journey, but thanks to your videos I have had numerous AHA! moments where the penny has just dropped and things finally start to make sense. Thank you so much!!!! I am so excited to keep learning now and I am going back to my work database with renewed vigor.

  • @satyabanukil779
    @satyabanukil779 Месяц назад

    I have a tabular form with lots of rows against a similar ID. But when I build a query either in update query or union query it shows multiple rows against same ID and one field is in the last row against that ID. Now I want how to solve this or how to build a union query based on a tabular form

    • @LearnAccessByCrystal
      @LearnAccessByCrystal Месяц назад

      hi Satyaban, without seeing your data structure and your query, I'm not sure how to help. A suggestion: if you want just ONE record for an ID, you can use a Group/Totals query or criteria under the ID to just get the latest value

    • @satyabanukil779
      @satyabanukil779 Месяц назад

      @@LearnAccessByCrystal Thanks for your prompt response Sir. I'm from suc a place where scope for MS Access learning is very low. So whatever assistance i am getting is from kind helpers from youtube. Therefore, It might not be prudent on my part to approach further. Still I want to mean it is a single table database with two forms where most of the formulas are applied in the subform. In the main form there is a field where Name has to be given and other data to be collected from the subform. I created a query including the name and other fields those are in the tabular form. But when I run the query name is displayed only once and that too at the bottom. I tried Union Query but same output I am getting. Still if you don't mind to get my database for having a look to detect the problems, can mail it. Still shall try group/totals query as advised. Thnx and regards.

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 16 дней назад

      ​@@satyabanukil779. This video was made before Access got enhanced to turn on a Total line with the user interface. When you are looking at results of your query, click Σ in the Records group on the Home ribbon. This adds a row to the bottom of the query where you can choose what to show for each column ... Sum, Count, Max, Min, etc

  • @diegkol
    @diegkol 2 месяца назад

    Almost what I need. I need help please. Example: [ParentID] is the same in multiple rows with different [ChildID] in each row. The Query should list [ParnetID] with only one child, based on the lowest number of [ChildID]. So basically a parent with the oldest child (based on ChildID, the child id is unique so the oldest child should actually have the lowest id number). Help would be appreciated.

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 2 месяца назад

      try something like: Select fieldlist FROM MyChildTable WHERE MyChildTable.ChildID IN (SELECT MyChildTable.ChildID = dMin("ChildID","MyChildTable", "ParentID=" & MyChildTable.ParentID)) ORDER BY fieldlist;

  • @mohammadayub6263
    @mohammadayub6263 2 месяца назад

    Great

  • @JosephDowski
    @JosephDowski 3 месяца назад

    Hi Crystal, so did Michael license his content for you to post/use? Love his stuff, and sort of amazing the stuff he was doing, many, many years ago. :)

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 2 месяца назад

      thanks, Jospeh. Michael donated his videos to be posted for the community

  • @JosephDowski
    @JosephDowski 3 месяца назад

    I love Michael's stuff! Is he still active?

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 2 месяца назад

      thanks, Joseph. No, not Access, which is why his videos are posted here

  • @rogerburns4356
    @rogerburns4356 3 месяца назад

    Thank you it was exactly what I was looking for and works just fine and although not instant does produce a perfect report from the query

  • @salimman9346
    @salimman9346 4 месяца назад

    Thank you Guru, thank you very muchj

  • @user-xc4wr6mv8e
    @user-xc4wr6mv8e 4 месяца назад

    Mere report ka design view aeise nahi a rhe keise set kro plz bta de

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 3 месяца назад

      English translation: "The design view of my report is not coming like this, please tell me how to set it." I'm sorry, not sure what you are asking, can you be more specific?

  • @user-dj5ss3ls8p
    @user-dj5ss3ls8p 4 месяца назад

    Wish you happy, you save the day!

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 4 месяца назад

      happy that Mike's video helps you!. Access is a great tool.

  • @bubblebath2892
    @bubblebath2892 4 месяца назад

    thanks a ton mam

  • @JosephDowski
    @JosephDowski 5 месяцев назад

    Isn't there an ability to do this natively now? I could have sworn there was... Love DataPig Mike Alexander's stuff! :)

  • @alks3352
    @alks3352 5 месяцев назад

    Thank you so much for saving my life :)

  • @b.petrushchak
    @b.petrushchak 5 месяцев назад

    Thank you ! That was very useful video. I was aware that it is possible to maintain custom document properties, but did not have a use case to work with it before. Well now I have and your video brought me up to speed quickly ! :-)

  • @christinastiles9279
    @christinastiles9279 6 месяцев назад

    Very helpful!

  • @mrikeict
    @mrikeict 7 месяцев назад

    11 years later and it is still relevant. Picture perfect explanation.

  • @07Tiger1050
    @07Tiger1050 7 месяцев назад

    I never give For...Next enough credit. This is a very elegant solution and provides clarity beyond Mouse Move. Thank you.

  • @joloblog9834
    @joloblog9834 7 месяцев назад

    Thanks a lot for this Crystal, it will save me a lot of time. And thanks to your calm voice, RUclips can translate it into flawless Dutch for me. English is my second language, but Dutch is for me just a bit better to understand it faster. Keep up the good work.

  • @IsItTrueThat
    @IsItTrueThat 8 месяцев назад

    How would you find the location of the second instance of a character in a string? Alternatively, how would you find the first instance of a character from right to left?

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 7 месяцев назад

      hi Jeff. The first argument for Instr is optional and is the place to start searching from. So first you find the first instance and then set the optional Start value to find the second one. InStr([ start ], string1, string2, [ compare ]) InstrRev will search from the end.

    • @IsItTrueThat
      @IsItTrueThat 7 месяцев назад

      Thanks, that is one of the shortest on-point answers I've ever received (to two questions, no less). Have a great New Year!

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 5 месяцев назад

      ​@@IsItTrueThat you're welcome! To search right to left, use InstrRev

  • @navaskdl
    @navaskdl 8 месяцев назад

    My criteria doesnt work. Its showing the full records count per row

  • @mikebaker6288
    @mikebaker6288 8 месяцев назад

    Thanks so much. I've been working on this for two days and you solved it for me in less than ten minutes!

  • @therealjohneason
    @therealjohneason 8 месяцев назад

    God Bless You!

  • @tameraly5367
    @tameraly5367 8 месяцев назад

    Thank you it is grate code

  • @katej.9317
    @katej.9317 9 месяцев назад

    Thank you so much for this. I've been stuck forever

  • @jesusdavila1947
    @jesusdavila1947 9 месяцев назад

    Crystal, you are the best!!! Thank you for all your videos and tutorials! I love how you explain things. Thank you very much. BTW I love your Documents Tables2Excel!!!! It is AMAZING! I have been looking for something like this, so far I was able, on my own, just to get the field names and some properties but nothing like your module! Thanks again and hope to see more videos from you.

  • @Rogues4Ever
    @Rogues4Ever 9 месяцев назад

    Thank you for your great explanation and calm voice! This was very helpful.

  • @user-ji5uk8tq8u
    @user-ji5uk8tq8u 9 месяцев назад

    Your tutorial on MS Access Hierarchical Relationships is truly exceptional. Thank you for sharing this amazing content. Your teaching style is superb - well-paced, clear, and engaging. It made the learning experience a real pleasure

  • @user-rh5we2hr2n
    @user-rh5we2hr2n 9 месяцев назад

    Thanks for the clear and helpful explanation on creating/editing custom document properties. This is super helpful! It's hard to find reliable MS-Word related content that's actually correct.

  • @tutsecret499
    @tutsecret499 10 месяцев назад

    Is that ok if you could show us how to highlight the entire row that has duplicates. If there there are 2, 3 or more duplicates, then highlight. I know how to do just highlight partial. I want the whole row to make easier to view to troubleshoot the duplicates. I don't remove duplicates right way. I have to seem them first, review, then I delete them. I have patient name, MRN #, and many other columns related to the patient. MRN cannot repeat has to be unique, however, sometimes we want to keep the duplicate happens to see if patient is an old client, had already treatment before in the clinic. It's a database that I did not create, it should be created in a more efficient way. It should have a field where shows the old history of the patient, instead of repeating the client's MRN record.

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 8 месяцев назад

      you could add aa expression something like DCount("fieldname","Tablename","fieldname=" & [fieldname]) to the RecordSource and use it for Conditional Formatting

  • @carlesserra
    @carlesserra 10 месяцев назад

    Great trick! Thanks for sharing!

  • @alializadeh8195
    @alializadeh8195 10 месяцев назад

    Thanks

  • @MarcusDieterle
    @MarcusDieterle 10 месяцев назад

    Thank you for this great info

  • @visualexpressions4385
    @visualexpressions4385 11 месяцев назад

    Have you looked at the new version yet?

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 10 месяцев назад

      Thanks. I have indeed, not pleased with structure, but good examples of Access feautures

  • @user-vd2ro9lz9l
    @user-vd2ro9lz9l 11 месяцев назад

    Thank you. I searched and searched to find advanced properties. Great vid and very informative. Well done.

  • @orange1826
    @orange1826 11 месяцев назад

    Crystal, thank you for reviewing my separate comment/feedback and investigating the issue. By using your generated, reformatted SQL as the input to a new query, I was using your add-in differently than you had intended. Glad the issue was resolved. I certainly did not expect to see a video on the issue's resolution. But thanks again--another great video. jdraw

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 11 месяцев назад

      thanks, Jack! It was wonderful of you to help me get it figured out!

  • @HughJass-jv2lt
    @HughJass-jv2lt 11 месяцев назад

    How are you uploading MS ACCESS *2003* videos all the way in 2022 ? 🤣🤣 Nonetheless, this video was helpful _enough_ for the problem I was trying to figure out. Cheers! ☀️☀️

    • @LearnAccessByCrystal
      @LearnAccessByCrystal 11 месяцев назад

      glad it helped you, Hugh. Mike Alexander created the Data Pig videos a long time ago. He shared them with me since his website isn't up anymore.

  • @joseotoya2102
    @joseotoya2102 11 месяцев назад

    Thank you Crystal.

  • @JanBolhuis
    @JanBolhuis Год назад

    Thank you!!

  • @joseotoya2102
    @joseotoya2102 Год назад

    Good to see your tutorials again Crystal. Thank you.

  • @MylarDaleToloMDTTV
    @MylarDaleToloMDTTV Год назад

    My installation of Office 2013 doesn't have MS Access in it.

  • @danielleeastburn9734
    @danielleeastburn9734 Год назад

    omg I always wanted to do this and stumbled upon your post. 30 minutes...Done! Beautiful. Thank you! PS. most Access how-to videos are boring...love the creative ideas you bring.

  • @user-nr7hd5yo7v
    @user-nr7hd5yo7v Год назад

    Thank you for such a straightforward and simple walkthrough.

  • @ansiepretorius5948
    @ansiepretorius5948 Год назад

    This seems like an amazing opportunity, thank you. Just a question. When I run the analyser, I get the following error message: Error 13 (Write_Obj_Properties, Type mismatch) and then the analysis stops. How could I fix this?

    • @LearnAccessByCrystal
      @LearnAccessByCrystal Год назад

      hi Ansie, thanks! Since making this video, things have changed. Your feedback and help to make it better are much appreciated. Download latest version from msaccessgurus.com/tool/Analyzer.htm#Download

    • @LearnAccessByCrystal
      @LearnAccessByCrystal Год назад

      after you get the download, be sure to UNBLOCK the zip file before extracting the database and using it

    • @ansiepretorius5948
      @ansiepretorius5948 Год назад

      @@LearnAccessByCrystal Thank you! I really appreciate your speedy response!

    • @ansiepretorius5948
      @ansiepretorius5948 Год назад

      @@LearnAccessByCrystal Thanks, I downloaded and unblocked the file, but now receive a runtime error - Bad file name or number - not sure what to do?

    • @LearnAccessByCrystal
      @LearnAccessByCrystal Год назад

      hi Ansie, it's hard to guess what might be wrong. Take time to look at my website to find me and send me an email. I'll connect to you so I can see why it isn't working, and I'll make it work.