473,468 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

I am getting a 64bit error when I try and hide the Red X close button in Access

anoble1
245 New Member
Hi,
I am having some issues with 32 and 64 bit systems and error messages.
I upgraded to 64bit and now it doesn't work.
I have an autoexec run when the program is open where is calls :
Expand|Select|Wrap|Line Numbers
  1. Function InitApplication()
Here is the code:
Expand|Select|Wrap|Line Numbers
  1. Function InitApplication()
  2.  
  3. Dim c As CloseCommand
  4. Set c = New CloseCommand
  5.  
  6. 'Disable Close menu.
  7. c.Enabled = False
  8.  
  9. End Function
At the top of that module, I have this too....
Expand|Select|Wrap|Line Numbers
  1. Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _
  2. ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
  3. Private Const KEYEVENTF_KEYUP = &H2
  4.  
  5. Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, _
  6. ByVal bRevert As Long) As Long
My question is... How do I get this to work for a 64bit system?
Feb 16 '16 #1
1 1288
zmbd
5,501 Recognized Expert Moderator Expert
You may have to set the conditional prtsafe in the Declare Statement (read more); however, you've failed to give us the exact error number and details so it's impossible to give you any real guidance beyond the link.
Feb 19 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: amusa | last post by:
When opening a visual basic project type and choosing an ASP .NEt template getting this error The Web Server Reported the following error when attempting to create or open the web project loaded...
2
by: David Hearn | last post by:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current...
1
by: alan | last post by:
I've use VB.NET+Access to write build a simple POS application. For example i got two computer, comp A and comp B. Which comp A share a Access db file through the network. When open a new bill, the...
2
by: David | last post by:
Is there anyway to get a different DialogResult or detect that the user clicked the close button on a MessageBox? I have a message box that pops up when my program first starts that only has an ok...
4
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Why am I getting an error when I passed by ref a dataset to a new form? The message reads "cannot convert from 'ref Paimport.unixAccount' to 'ref System.Data.DataSet'. Paimport is the name of the...
1
by: sreedhardasi | last post by:
Hi, I would like to call a javascript function when user clicks on browser's close button. Here is the scenario. 1. User clicks browser close button. 2. User will be displayed a popup or a...
12
by: mylixes | last post by:
I have a Windows Application. I just don't understand why is it that when i click the Close button, instead of closing the form, it minimizes the whole application. I don't experience this on my...
1
by: Omendra | last post by:
I am getting an error When i am going to convert my SP as dynamic Error : Msg 403, Level 16, State 1, Line 21 Invalid operator for data type. Operator equals add, type equals text. Code : ...
13
Seth Schrock
by: Seth Schrock | last post by:
I am getting an error when trying to cancel my form's BeforeUpdate event. It says: You can't save this record at this time. ACH Manager may have encountered an error while trying to save a...
2
by: kroeh1234 | last post by:
I have an Equipment form with a subform for Utilization. So that the user can close or cancel a change, I created buttons, using the wizard, for close and undo. So, why does Access go through the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.