Angelflower
Have a nice day.
- Local time
- Yesterday, 18:45
- Joined
- Nov 8, 2006
- Messages
- 51
The database I am working on has Access as the frontend and SQL as the backend. I have noticed that both peices of code will work. I want to know if it really makes a difference in which one I use.
Dim stDocName As String
stDocName = "rpt_MAMC_invoice"
DoCmd.OpenReport stDocName, acPreview
or
DoCmd.OpenReport "rpt_MAMC_invoice", acPreview
Dim stDocName As String
stDocName = "rpt_MAMC_invoice"
DoCmd.OpenReport stDocName, acPreview
or
DoCmd.OpenReport "rpt_MAMC_invoice", acPreview