Category Archives: MS Access Reports

MS Access Reports

Mastering Microsoft Access’ DLookUp Function

Outside of queries, DLookup is another built-in versatile and essential function in Microsoft Access that allows users to retrieve specific field values from tables or queries based on a defined criteria. This function is particularly useful when you need to access data that isn’t directly available in your current form, report, or query.
 

Syntax and Structure

The basic syntax of the DLookup function is as follows:

DLookup(expr, domain, [criteria])
  • expr
    The field or expression you want to retrieve.
  • domain
    The table or query name containing the data.
  • criteria
    Optional. The criteria to filter the records with.

 
Continue reading

Export Report to Excel Only Available As XLS Format

Well, I’m all for reminiscing, but in this instance I think the Dev Team may have gone a little too far!

A user recent left me a comment inquiring about how they could export an Access report in Excel format, but as an xlsx. Seem like a reasonable enough question considering the xlsx file format has been the default format for at least 17 years now!

Continue reading

Modern Web Browser Bug Rendering Media with CAPITILIZED Extensions

Software Bug

Here’s another really weird bug with the Modern Web Browser control that was mentioned to me by Juanfran Rodriguez (@juanfranrodriguez), one of my YouTube viewers.

The issue is that if you use a capitalized the file extension used in the Modern Web Browser control’s Control Source, when trying to directly display media, you will get gibberish displayed rather than the actual media.

Continue reading

Playing Around With Microsoft Access Text Boxes

Today, I thought I’d simply share a few bits of code for things developers often need to do with Text boxes, and a few that I had fun creating just for the sake of seeing how it could be done!

Things like:

  • Positioning the Cursor
  • Selecting Text
  • Inserting Text
  • Retrieving Content
  • And More…

Continue reading

Control Renaming Event Bug

Software Bug

Since I’m on the subject of Event bugs…

It only makes sense to mention another longstanding bug when renaming controls!  One that I was reminded of by a recent comment on my YouTube channel by Xavier Batlle (@xavierbatlle1828)

Events also are lost when controls are renamed.Xavier Batlle

Continue reading

Another Bug With The Modern Web Browser Control On a Tab Control

Software Bug

After my recent article regarding the Modern Web Browser control always appearing when placed on a tab control:

I decided to do a little more testing, as this was one thing I had never explored before, well not with the Modern Web Browser control at least.

Sadly, things went downhill!

Continue reading

Modern Web Browser Control Does Not Support URL Parameters When Working With Local Files

Software Bug

One more bug to add to the very long list of Modern Web Browser control bugs!!!

I was working on what I was hoping would be a nifty demo database to utilize for fun media capabilities that HTML5 offers and got it all working fine in Edge, on its own. Sadly, when I then tried to bring it over into Access I hit a wall.

After testing I discovered that Access will accept a Control Source like:

="https://msaccess/C:\Users\Daniel\Desktop\blank.html"
="https://msaccess/C:\Users\Daniel\Desktop\" & [FilePath] & ""

where [FilePath] returns ‘blank.html’ (and yes the ending & “” is required to get around another bug!)

So, simply accessing a file is possible. We knew that.

Where things then start to fall apart is when we try to pass parameters as part of the URL of any local files. Thus, passing parameters like demonstrated in the following 2 examples fail.

Continue reading

Modern Web Browser Control Disappearing Control Source Bug

Software Bug

Came across a really weird bug today while trying to identify another bug with the Microsoft Access Modern Web Browser control.

I set a Modern Web Browser control’s Control Source to something like:

="https://" & [URL2]

then tested and came back into Design View to see some messed up Control Source shown on the control itself, yet a blank property value. I even tried the Zoom box, and it too is blank???!

Continue reading

Modern Web Browser Control Initially Displaying Blank Page

Software Bug

Yep, another bug with the Modern Web Browser control.

Worse, this issue occurs when simply trying to navigate to a URL via VBA using the form’s current event. At the opening of a form, navigation is simply completely unreliable and more often than not renders a blank page! Sometimes it works, but most of the time it does not! When navigating the records, the event works just fine, this bug is limited to the initial opening/loading of the form/report control. So in most instances, the user ends up with a blank Modern Web Browser control when they should be seeing content.

Continue reading