GinaWhipp
AWF VIP
- Local time
- Today, 11:53
- Joined
- Jun 21, 2011
- Messages
- 5,899
Not working didn't think this would be so difficult thanks for all the help.You can what @Isaac suggested but if it's on the Form not sure why you need to declare it. It should only pull for the referenced control. So, once you select the Building you can just pick any report you want to print, the code does not care that you are clicking a different command button.
Well I'd say it is not. It is difficult however determining exactly what you are trying to do, only getting bits of info here and there.Not working didn't think this would be so difficult thanks for all the help.
mdlCommon.cmdElevators_Click
Option Compare Database
Option Explicit
Public Sub cmdElevators_Click()
On Error GoTo cmdElevators_Click_Err
DoCmd.OpenReport "rptElevators", acViewReport, "", "[BldgAbb_ID]=" & "'" & BldgAbb_ID & "'", acNormal
cmdElevators_Click_Exit:
Exit Sub
cmdElevators_Click_Err:
MsgBox Error$
Resume cmdElevators_Click_Exit
End Sub
Overlay of command buttons on different mech. pictures for each building)
top and left coordinates in the table as fields (attributes) of the control.but overlay of command buttons in a specific location over a picture how could it be done?
Maybe one function that takes the name of the control (button?) as at least one parameter. Right now I personally have little clue as to what you need, but I would bet money that the number of forms needed would be as little as one per group/style at most.How about the code for the 7 command buttons anyone have any ideas.