Trying to Make an Efficient Calendar in Microsoft Access

前端 未结 5 707
日久生厌
日久生厌 2021-01-03 05:46

I\'m working on an equipment management system using a MS Access .mdb file for the front end, and SQL Server 2008 for the back end. If needed I can convert the front end to

5条回答
  •  爱一瞬间的悲伤
    2021-01-03 06:16

    A question related to calendars was asked not long ago: Creating a 'calendar matrix' in Access

    That said, you're probably never going to achieve good performance with 43 subforms bound to non-trivial queries.

    Minor possible improvement

    You're not saying if your data is on a backend server, in which case each subform has to fetch data across the network.
    If that's the case, you may be better off doing one query to the server to pull all the data and cache it in the front end. You would then only have to do simple filtering on a local table, which should be be faster, although the 42 subforms are probably going to be a big bottleneck to performance.

    A simple INSERT INTO query could get you started, provided you have created a local table called myCacheTable based on the returned data from your normal query.

    Lightweight controls

    The first thing you should probably try, it to use the venerable listbox.
    It is fairly lightweight and there are many ways to configure them.
    If you combine that with caching data from the server as I mentioned above, you could get better performance.

    Listbox example

    Web-enabled controls

    As HelloW mentioned, it may be a good idea to simply use textboxes set to TextFormat = RichText and supply them with simple HTML (it doesn't support much) to format the data inside:

    RichText Textbox example

    Full-on web page

    Maybe a bit more complex to setup, but difficult to beat in terms of UI, could be to use an existing Javascript library like FullCalendar, or inject your own html directly into the browser document (you could use simple

    to format the calendar).

    Here is an example of what a sample online calendar looks like inside a WebBrowser control in an Access form:

    web calendar view in Access

    提交回复
    热议问题