When I tried to Compact and Repair, it gave the same error as it did On_Activate before.
That means you need to fix whatever code is causing the problem first.
That is where you do the COMPILE and see where it takes you and then you fix that.
Public Function ChoosePeriod()
If IsLoaded("frmTransAndBAS") = True Then
DoCmd.Close acForm, "frmTransAndBAS", acSaveYes
End If
DoCmd.Forms!frmChooseDates.Visible = True
End Function
and the (.Forms) in the last line in the block is highlighted in blue.
That would be a dll, ocx or olb that isn't registered on that machine.
Look in the REFERENCES list in your VBA editor (i.e. TOOLS -> REFERENCES) and see if there's any with the word Missing.
That code is meaningless to the compilerError: Method or Data member not found
Code:DoCmd.Forms!frmChooseDates.Visible = True
Got it sorted?I compared the ticked libraries in Windows 2000 and XP and found that 2000 has Microsoft Access 9.0 Object Library where as XP has 12.0 instead of 9.0
It isn't the Windows installation that has to do with the 9 vs. 12. 9 is Office 2000 and 12 is Office 2007, regardless of which Windows installation you have.
I am happy to run only office 2000 on the XP machine.
So that means that EVERYONE who runs that database can ONLY use 2000. Nobody can use anything else until you get the split and the separate frontends on their machines.