Hi There!!
I am working on a database to keep track of computer parts. I started working on it at work, and then wanted to work on it some more at home, but i am getting an error. I am running Access XP on both machines.
I am trying to run the following code from a button click on a form:
Everything works fine on my computer at work, it displays the report just fine. When i try to run it at home, i get an error that says "Object doesn't support this property or method".
Does anyone have any idea's why this would be happening on one computer, but not another?
Thanks in advance.
I am working on a database to keep track of computer parts. I started working on it at work, and then wanted to work on it some more at home, but i am getting an error. I am running Access XP on both machines.
I am trying to run the following code from a button click on a form:
Code:
Dim strWhere As String
strDocName = "report1" 'Report Title
strWhere = "[Computer]=" & Me![computer].Column(2)
strWhere = "[RAM]=" & Me![RAM].Column(2)
strWhere = "[HD]=" & Me![HD].Column(2)
strWhere = "[FLOPPY]=" & Me![FLOPPY].Column(2)
strWhere = "[CD]=" & Me![CD].Column(2)
strWhere = "[MONITOR]=" & Me![MONITOR].Column(2)
DoCmd.OpenReport strDocName, acPreview, , strWhere
Everything works fine on my computer at work, it displays the report just fine. When i try to run it at home, i get an error that says "Object doesn't support this property or method".
Does anyone have any idea's why this would be happening on one computer, but not another?
Thanks in advance.