Nothing was MISSING in the library references. The following was checked:
- Visual Basic for Applications
- MS Access 11.0 Object Library
- OLE Automation
- MS VBA Extensibility 5.3
The full statement is:
Private Sub Command2_Click()
On Error GoTo Err_Command2_Click
basOpenWhatForm True, "frm_CO's_Amendments", Me![Combo0], False, False,
"NotEditable"
DoCmd.Close acForm, "fmnu_View_CO_By_Project"
Exit_Command2_Click:
Exit Sub
Err_Command2_Click:
MsgBox Err.Description
Resume Exit_Command2_Click
End Sub
Regards, tb
:
"failing on the "acform" variable"
what is the full statement? perhaps you need a library
reference -- or maybe you are missing a comma.
*** Check Library References ***
from the menu in a module, choose Tools, References...
---> does anything say MISSING?
*** Decompile ***
if you still haven't resolved the problem, try decompiling
the database
make an icon with this as its target:
"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE"
"C:\path\filename.mdb" /decompile
if your Access program is not located in the directory
specified, make the appropriate substitution
after you decompile, compile it if you have any code and
then do compact/repair
Warm Regards,
Crystal
Microsoft Access MVP 2006
*
Have an awesome day
remote programming and training
strive4peace2006 at yahoo.com
*
tb wrote:
I've tried debug/compile, but receive an invalid data format error.
Could the MS system files for index and forms be corrupt? I found that
failing on the "acform" variable. I am also unable to import specific forms
in a new database; once imported they disappear; and invalid data format when
importing these specific forms.
tb
:
all DATA in the database is stored in tables, so no data
will get deleted if you delete a module -- only program code
have you compiled your code?
from the menu in a module:
Debug, Compile
Warm Regards,
Crystal
Microsoft Access MVP 2006
*
Have an awesome day
remote programming and training
strive4peace2006 at yahoo.com
*
tb wrote:
I noticed a "Module 1" module which does not open. Receiving the error
Invalid Data Format. If I delete, will I delete any valid information
pertaining to my database?