Trying to Make an Efficient Calendar in Microsoft Access

前端 未结 5 724
日久生厌
日久生厌 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:19

    Another solution would be to make many textbox controls, each one representing the record in the calendar day.

    You run 1 query- fast!

    In VBA cycle through each textbox control and assign to it horizontal and vertical position, content (value), format, visibility (you do not need to show ones without data).

    Down side is you have to decide in advance how many text box controls you need and may be it will be not enough for all records delivered by query.

    To overcome this problem you could arbitraryly decide that you have 100 controls only first showing more important records from your recordset (ex. Overdue), and making a note that "not all records shown". If user wants to see all records, he clicks particular date, and more detailed subform opens, which shows all records for this date.

    I never tried in the calendar, but I have a form with Gantt chart, showing time bars. Each timebar is a textbox control. I have 120 controls and it works instantly.

提交回复
热议问题