Code not working (1 Viewer)

Kundan

Registered User.
Local time
Today, 03:27
Joined
Mar 23, 2019
Messages
118
When I make an accde file the VBA code doesn't work. why? How to solve the problem?
 

theDBguy

I’m here to help
Staff member
Local time
Today, 03:27
Joined
Oct 29, 2018
Messages
21,477
Can you post both the accdb and accde files for inspection?
 

Kundan

Registered User.
Local time
Today, 03:27
Joined
Mar 23, 2019
Messages
118
Attaching both files.
 

Attachments

  • Database accde.zip
    121.4 KB · Views: 56

zeroaccess

Active member
Local time
Today, 05:27
Joined
Jan 30, 2020
Messages
671
Try this. Compiled in Access 2019 32-bit.
 

Attachments

  • Database1.zip
    78.9 KB · Views: 63

Kundan

Registered User.
Local time
Today, 03:27
Joined
Mar 23, 2019
Messages
118
I have Windows 10 64bit. Your 32bit DB is not opening.
 

isladogs

MVP / VIP
Local time
Today, 11:27
Joined
Jan 14, 2017
Messages
18,239
The Windows bitness is irrelevant. However a 32-bit ACCDE cannot be used in 64-bit Access (or vice versa)

Here's another version done in A365 64-bit
 

Attachments

  • Database1.zip
    81.8 KB · Views: 59

Kundan

Registered User.
Local time
Today, 03:27
Joined
Mar 23, 2019
Messages
118
Code not working in accde. When I enter the REMARKS field the popup window does not open.
 

isladogs

MVP / VIP
Local time
Today, 11:27
Joined
Jan 14, 2017
Messages
18,239
It would have helped if you had said which code didn't work in the First place.
The problem was that you had left an empty event procedure in the Remarks_GotFocus event.
I've removed that and recompiled the ACCDE. AFAIK. it now works correctly

NEVER leave empty event procedures when compiling to ACCDE.
 

Attachments

  • Database1a.zip
    86.1 KB · Views: 56

isladogs

MVP / VIP
Local time
Today, 11:27
Joined
Jan 14, 2017
Messages
18,239
Empty event procedures lead to unpredictable results In ACCDE files
Sometimes it prevents the code being compiled as an ACCDE.
At other times, it compiles but prevents code for that control working as Kundan observed and also happened for me using 64-bit.
Perhaps 64-bit is more 'picky' than 32-bit??? Who knows?
 

Users who are viewing this thread

Top Bottom