cannot create accde (1 Viewer)

sammers101

Registered User.
Local time
Yesterday, 21:11
Joined
May 11, 2012
Messages
89
More ways to debug compile errors? Having problems creating an accde file
Trying to follow the directions "Correct any problems in the code that prevent you from compiling the database or project" from microsoft to no avail
I added
Code:
Sub Generate_Compile_Error()
 MsgBoxx "This will cause an error"
End Sub
as a module but don't see an error message or message box when trying to save as an accde, other than "Microsoft Access was unable to create the .accde, .mde, or .ade file"

It's a front end file, I have already deleted all my linked tables as they were linked to accdb files. Any other reasons I might not be able to create an accde file?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 09:11
Joined
May 7, 2009
Messages
19,231
To each module, form's code, report's code
Add;

Option Explicit

Declaration, then try to compile it and your error will appear.
 

Ranman256

Well-known member
Local time
Yesterday, 21:11
Joined
Apr 9, 2015
Messages
4,339
When you clicked COMPILE, the error should have shown. DId it?
 

sammers101

Registered User.
Local time
Yesterday, 21:11
Joined
May 11, 2012
Messages
89
I've deleted all the forms and reports to try to narrow it down and still getting the same issue. Very odd, only thing left is a brand new form named start, local tables, and a module with the code
Code:
Sub Generate_Compile_Error()
MsgBoxx "This will cause an error"
End Sub
I'm thinking I will try to import everything into a new file and try again
 

Rene vK

Member
Local time
Today, 03:11
Joined
Mar 3, 2013
Messages
123
MsgBox with only one 'x' ? or did you write a Function?
 

sammers101

Registered User.
Local time
Yesterday, 21:11
Joined
May 11, 2012
Messages
89
Did I do something wrong with the module code?
Code:
Option Compare Database
Option Explicit
    Sub Generate_Compile_Error()
    MsgBoxx "This will cause an error"
    End Sub
 

Isaac

Lifelong Learner
Local time
Yesterday, 18:11
Joined
Mar 14, 2017
Messages
8,774
1. Do you really have MsgBoxx ? Is MsgBoxx a custom function or class?

2. Did you actually Compile prior to trying to create the accde?
 

sammers101

Registered User.
Local time
Yesterday, 21:11
Joined
May 11, 2012
Messages
89
I do not have a msgboxx function, I was copying the code Microsoft had on their website, it appears they have a typo.
I found the error, I was trying to use ShellToFile for links in a to do list. Is there another way that allows users to click links that are part of a list?
Some items in the list have a link, others do not. They are different links
Code:
Private Sub cmdOpen_Click()

    If Not IsNull(Me.link) Then
        ShellToFile Me.link
    End If
    
End Sub
 

Attachments

  • list.png
    list.png
    9.7 KB · Views: 341

Users who are viewing this thread

Top Bottom