My esteemed colleagues have given you good advice. However, I would be remiss if I didn't offer a cautionary explanation, to give you the other side of the picture. Before I do so, I must clarify this: The earlier advice is not wrong. I just think that a more rounded view can help you here.
Deciding between SQL vs. VBA can sometimes be a difficult problem. Here are some pro and con issues.
SQL code is compiled. Stored queries are pre-analyzed. Dynamic queries still take advantage of the compiled nature of the SQL facility even though the analysis takes a bit longer. Therefore, if you CAN write what you want in SQL, it might be faster than if you wrote a loop in VBA to do the same thing. SQL, when it works and is meaningful, is more direct. SQL will probably be very easy to "up-convert" if you ever change to a split front-end + back-end situation where the back-end is not Access. SQL can be easily designed using the query grid and then switching from design view to SQL view.
VBA code is interpretive, but it is capable of doing something that SQL cannot do - remember context from one record to the next. VBA is slower than the equivalent SQL statement - when there is an equivalent SQL statement. VBA can do context-sensitive testing based on values in a given record. VBA can offer incredible flexibility. But a speed-demon, it is not.
To be honest, I just retro-fitted a VBA sequence with SQL because the back-end server was suffering terrible network congestion. VBA can make such situations very aggravating. I would not say that it wasn't doing the job - but if the network connection to a shared back-end gets slowed down, you have a really good chance of network drop-outs causing databases to become corrupted.
To my way of thinking, you gain a lot of insight when doing VBA & recordset operations. However, it comes with a price. Don't get me wrong. I will use VBA where I feel it is appropriate. However, you are trying to become a particular type of technician. It would be in your best interests to assure that BOTH tools are in your toolkit. Which one first? Whichever one is more comfortable and consistent with what you need to get done.