473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

in the printing of the access form get error dialog box

in the printing of the access form using following cord.. get error........

Expand|Select|Wrap|Line Numbers
  1. Private Sub CommandBtn_Click()
  2. Dim MyForm As Form
  3. Set MyForm = Screen.ActiveForm
  4. DoCmd.SelectObject acForm, MyForm.Name, True
  5. DoCmd.PrintOut
  6. DoCmd.SelectObject acForm, MyForm.Name, False 
  7. End Sub

the error is...
''the object you referenced in the visual basic procedure as an OLE object isn't an OLE object''

error number- 2950

please give me the solutions.....
Apr 25 '14 #1
1 1422
zmbd
5,501 Expert Mod 4TB
- Version of access?
- See here: > Before Posting (VBA or SQL) Code set the options and debug/compile (repeating after each fix)
- Insert STOP in-between lines 2 and 3 as formatted in the post.
- Run your code
- When you enter break mode at the STOP, use [F8] to step thru the code.
- When you reach the error line: Please post, the numbr of line the error occures and the EXACT title, number, and text of the error message. Please do not alter, omit, nor abbreviate the information provided in the error message
Apr 25 '14 #2

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

Similar topics

0
by: pargat singh | last post by:
Hi Everyone: I am posting this third time, Plaese Help.It is very urgent. I am having a problem to open asp.Net project.The error which i am getting is Web Access Failed the default Web...
2
by: Josh Strickland | last post by:
I am attempting to create an Access database which uses forms to enter data. The issue I am having is returning the query results from the Stored Procedure back in to the Access Form. ...
1
by: Fred F. | last post by:
Here is my problem. From an ACCESS form, I run a C++ process reaching the same database in read/write mode via the ODBC driver. An error occurs: " The database has been placed by an unknown user in...
5
by: Hank | last post by:
I automatically shut down every PC that is logged into my Access 2000 database at a time that is set on a configuration screen (Around 02:00 AM) . I do this by checking Now() against the ShutDown...
14
by: Simon Abolnar | last post by:
I would like to know how to open child form from dialog form. Thanks for help! Simon
4
by: stax | last post by:
Hi, lately a lot users of my application complain it won't even startup, there seems to be a few problems. Here is a screenshot a user made of a error dialog I've never seen before: ...
1
by: Lennart | last post by:
Hi all, Maybe someone can help me with this: My C++ project contains try and catch blocks. A catch-all block triggers my custom message box with some information on the error caught. The...
1
by: Zaher Rabah | last post by:
How can I display a form in dialog mode by press any keys in the keybaord in access 2003. This form is used as calculater "For fast calculate" This is the idea.
1
by: CoolFactor | last post by:
MY CODE IS NEAR THE BOTTOM I want to export this Access query into Excel using a command button on an Access form in the following way I describe below. Below you will find the simple query I am...
4
by: SandeepJagdeva | last post by:
I have a MS ACCESS Form that was designed for printing a Departmental Store’s bills. In this form I have a 6 column list box and some labels. The user adds items to this list box as per customer’s...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.