473,833 Members | 2,199 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DoCmd Without Access-2003

41 New Member
I have designed software with VB6.0 as frontEnd & access-2003 as backend. For running action queries & for importing text files to my database i am using DoCmd object for which i have add reference to Miscrosoft Access 11.0 object library. In my PC it works fine as i have installed Access 2003 in my PC but in other PC's where Access -2003 is not installed it is giving error "Can not create ActiveX object" and other errors also. It works fine if i install Access-2003 to these PC's. How can i get rid of this problem without installing Access-2003 in each PC's. I have created setup with Visual Studio Installer.
Thanks
May 18 '08 #1
4 1618
lotus18
866 Contributor
I have designed software with VB6.0 as frontEnd & access-2003 as backend. For running action queries & for importing text files to my database i am using DoCmd object for which i have add reference to Miscrosoft Access 11.0 object library. In my PC it works fine as i have installed Access 2003 in my PC but in other PC's where Access -2003 is not installed it is giving error "Can not create ActiveX object" and other errors also. It works fine if i install Access-2003 to these PC's. How can i get rid of this problem without installing Access-2003 in each PC's. I have created setup with Visual Studio Installer.
Thanks
Hi

You have to include Microsoft Access 11.0 object library in your package.

Rey Sean
May 18 '08 #2
Dököll
2,364 Recognized Expert Top Contributor
Listen to Rey Sean, VB must have components/references that are vital to the whole application. Furthermore, I've had this problem and sometimes I found it is the version of Access, from 2000 to 2003 as one example, that seems to be the problem; Active X controls therefore do not work... might want to also keep that in mind.

Sorry for your troubles, must be annoying...

Dököll
May 20 '08 #3
Neelesh2007
41 New Member
I have already included reference to Access 11.0 library in package even then problem arises.
May 20 '08 #4
jeffstl
432 Recognized Expert Contributor
I have already included reference to Access 11.0 library in package even then problem arises.
OK I don't mean to ask questions that you may think as obvious but sometimes they sneak by.

You say you included the reference to the library in your project. Did you re-compile and re-create the installation files after this inclusion? Then re-distribute and have your users re-install?

The compiled .exe should work on every PC its put on if it works on one PC. Especially if the installation was done properly and all the files have been copied over. If the .mdb file is part of the installation package and they don't have Access installed, that I'm not sure of though
May 20 '08 #5

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

Similar topics

0
8249
by: Jim | last post by:
I am using Access 97 on a PC running Windows NT 4.0 SP6a. I have some code (shown below) intended to add a set of records to one table (tblGradeProps) when a new record is created in another (tblGrades) The oddity is that when the procedure Detail_Click is called from the procedure cmbMktSect_Exit, the RunSQL statement doesn't add the required records but it does so when invoked by the Detail_Click event!
3
12592
by: Eric | last post by:
What's the best way to cancel the new record when doCmd.GoToRecord , , acNewRec is executed and before the new record is actually written to the database. I'm maintaining an existing Access 97 application. The main order form's recordsource is a query. On the form is an add button that uses doCmd.GoToRecord , , acNewRec to display an empty record and place the user in the first field. If the user tabs out of the first field (assuming...
8
13217
by: John Welch | last post by:
I have a command button with the following code: DoCmd.OpenForm "frmSearchAssignments", , , "SearchAssignmentID = 1" (SearchAssignmentID is the PK, auto number) When it runs, the form opens but shows all records, rather than going to the one I want. If I look at the form in design view, it shows 'SearchAssignmentID=1' (without quotes) as the filter in the properties list. frmSearchAssignments is bound to a query qrySearchAssignments....
6
10049
by: EJO | last post by:
TIA, There is already a form (Access 2k) with the selected record and a button with this code behind it: DoCmd.PrintOut acSelection Except that Access does not print the acSelection, it prints the entire query result behind the form. How does one do what VB says it will do:
1
5324
by: Ryan | last post by:
Hello. I was hoping that someone may be able to assist with an issue that I am experiencing. I have created an Access DB which imports an Excel File with a particular layout and field naming. Next the user can go into a Form which basically a dynamic query with a friendly interface that eventually outputs a table that is stored in the DB as well as exported to a CSV file. The CSV file is then used with a vendor solution to fill in...
4
6072
by: robtyketto | last post by:
Greetings, I originally used a button on a from created via the button wizard (access 2007) to run my report which was based on a query. Since I wanted to add some validation I removed the button and added my own code (as below):- However the open report is just a preview and the user cant exit the preview screen without directly using access controls.
2
3770
by: jmartmem | last post by:
Greetings, I have several Access 2007 reports that I regularly export to individual PDF flat files on a web server. I've successfuly created a module sub to export the reports using the DoCmd.OutputTo Macro action, but I can't seem to figure out how to run the macro automatically. I can succesfully run the macro below manually (without the IF statements), but have yet to make it work with the IF statement. Ideally, the macro will run...
10
49622
by: Dean | last post by:
My client has a db I am working that uses temp tables. During an update procedure, I had the code If fTableExists(tempTblName) = True Then DoCmd.DeleteObject acTable, tempTblName Then I thought of using: If fTableExists(tempTblName) = True Then CurrentDb.Execute "DROP TABLE " & tempTblName Is there an advantage to either? What really be cool is DROP TABLE deleted the table and I didn't have to compact the db so much.
5
11161
by: phill86 | last post by:
Hi I have a main form that holds records for scheduled meetings, date time location etc... in that form i have a sub form that has a list of equipment resources that you can assign to the meeting in the main form. I have two buttons in the sub form one for selecting and copying all the records and another for pasting the records this enables me to copy and paste the equipment resources from one scheduled meeting to another. The buttons are...
4
6681
by: gazza10001 | last post by:
Hi i hope you can help my company uses access and has modified for its needs usually what happens is you serach for the invoice by its number and then it brings all the information up such as entry fields and so there is a button you press which then takes to through to a print preview of the invoice and you print out the invoice but recent ly this message ahs started appearing and does not allow you to view the print preview of the invoice...
0
9642
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10782
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10500
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10543
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9323
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5624
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5789
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3972
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3078
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.