G’Day mates!
Every year I have to create a whole new room assignment picture via Corel Draw. This is pretty nasty work since I have to color each room seperately and add some text to the room’s description.
While playing around with access I had an idea popping in my head: why not have access do all the work?
Please take a look at the attached database. I think you should get the idea what I want. The final result will have colored backgrounds for the rooms, roomnumbers and room’s descriptions – no need to help me there, all I need is the start.
Please take a look at the code in frmDiagram. I somehow need to create a function which runs through the DLookup for every i in 123 to 140… My problem is that I can’t have something like:
For i = 123 To 130
“txtBox” & i & “.Caption = DLookup(“RoomName”,”tblRooms”, “RoomNumber=” & i)
Next i
Since the text boxes, squares and everything will have numbers which are represented in tblRooms there must be some way to just have a simple function…
Hope you can help
Dennis