Hi,
In Access 2016 and later versions, the Access form does not support displaying Excel spreadsheets directly within the form.
To display an Excel spreadsheet within an Access form in Access 2016 or later versions, you would need to explore alternative options, like,
One option is to use an ActiveX control such as the "Microsoft Office Spreadsheet" control (but that also depends on the version of your MS Access and the installed office components, which allows you to embed an Excel spreadsheet directly within the form.
And the other option is what you're already seeing i.e. Excel spreadsheet automatically opening in a separate window.
So, here's how you can use the option 1 that I mentioned-
- Open the Access form in Design View.
- If the "Developer" tab is not visible in the ribbon, enable it by going to the File tab, selecting Options, choosing "Customize Ribbon," and checking the box for "Developer."
- Go to the "Developer" tab in the ribbon and click on "Design Mode" to enable design mode for the form.
- Click on the "More Controls" button in the "Controls" group on the "Developer" tab. It looks like a hammer and wrench icon.
- In the "More Controls" dialog box, scroll down and select "Microsoft Office Spreadsheet." Click on "OK."
- You will now see a crosshair cursor. Click and drag on the form to draw the control's size.
- Right-click on the control and select "Properties" to open the property sheet.
- In the property sheet, you can set the properties of the "Microsoft Office Spreadsheet" control, such as the source file, the range to display, and other options.
- Save and close the form.
This may not work 100% but it's worth a try.
Let me know if it worked for you.
Best Regards.