473,416 Members | 1,570 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,416 software developers and data experts.

Queries not showing up

Ok guys,

I inherited this application(vb6) recently and I am trying to figure out how it is talking to the database. It turns out that it uses an Access 2000 database and uses two files.. *.pmdb and *.pmdw. I am guessing they are just renamed .mdb and .mdw files. I can load the .mdb file straight into access, but there are 0 queries saved into it. They must be in there somehow because the app works fine. So my question is.. has anyone had a similar problem? Does anyone have any ideas?

Here is some more relevant info.

This is how you open the files together in access:
Put the following string in the target field of your icon.

"C:\Program Files\Microsoft
Office\Office\MSACCESS.EXE" "c:\program
files\resman\blank.pmdb" /wrkgrp "c:\program files\resman\blank.pmdw"


This is the function that executes the psuedo stored procs... I know access technically doesn't have them.
Expand|Select|Wrap|Line Numbers
  1. '
  2. ' Generic Post When a Stored Proc Exists
  3. '
  4. Public Sub ExecuteCommand(sCmd As String, ParamArray params() As Variant)
  5. On Error GoTo ErrorTrap
  6.     Dim cmd As New ADODB.Command
  7.     Set cmd.ActiveConnection = gcnDatabase
  8.  
  9.     cmd.CommandType = adCmdStoredProc
  10.     cmd.CommandText = sCmd
  11.     If UBound(params) > 0 Then
  12.       cmd.Execute , params, adExecuteNoRecords
  13.     Else
  14.       cmd.Execute , , adExecuteNoRecords
  15.     End If
  16. Exit Sub
  17. ErrorTrap:
  18.     gpErrorHelper.NonTerminalErrorHandler Err, Erl, MODULE_NAME
  19. End Sub
  20.  
Thanks for any help guys, I am really stuck here.
Aug 24 '07 #1
3 1459
Rabbit
12,516 Expert Mod 8TB
They're probably just hidden. Tools > Options > View tab > Hidden Objects checkbox.
Aug 24 '07 #2
They're probably just hidden. Tools > Options > View tab > Hidden Objects checkbox.
Thanks for the idea, but unfortunately it did not work. Any other ideas?
Aug 24 '07 #3
Rabbit
12,516 Expert Mod 8TB
I didn't look at the code before hand but it looks to me that there are no stored queries. They're just passed as SQL strings in the code.
Aug 24 '07 #4

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

Similar topics

1
by: Turloch O'Tierney | last post by:
Greetings, I am migrating Access queries, is there a book that people recommend, ideally with close to EBNF (concise) SQL Query description Is the 'Access 2003 Bible' a good choice, or should...
6
by: geronimo_me | last post by:
I have 20 queries that compare fields in one table with fields in another table - the query results are the records that do not match in Table1 and Table2. ie Table1 DOB 28/02/78 Table2 DOB...
0
by: morgal | last post by:
Well, I'll look into my crystal ball and tell you what I've experienced according to your lack of description of your problem and error codes: 1st make 1 recordset per databinding. I'll assume...
3
by: cover | last post by:
Is it possible to use a 'mouse up' click in forms where if you have for example, a drop down menu where you might click as the top selection, an equipment area (hard coded into the form), the type...
5
by: KitKat | last post by:
I've got two queries; one is a modification of an older query; the other I created from scratch. The old one is about 5 copies down the road from something that has been expandable when I'm in...
4
by: john | last post by:
I have a about 15 different numbers (which are the result of 15 query calculations (queries on different tables)) which I want to present in a report. What would be the easiest way to get those...
0
by: tdotsmiley | last post by:
Hi, I have multiple union queries that I have. These are from 4 different tables. Is there a way I can use the report feature so that it combines all of the queries into one file so that I can...
9
by: Bill E. | last post by:
I'm creating an MS Access application that connects to a SQL Server 2005 database using pass-through queries and ADO to call stored procedures. I ran a SQL trace and started clicking through...
1
by: eHaak | last post by:
A couple years ago, I built a database in MS Access 2003. I built the form using macros in some of the command buttons, and now I’m trying to eliminate the macros and just use visual basic code. ...
1
by: ncsthbell | last post by:
I created a database using full blown access 2007. I have put it out for users to grab and test using Runtime Access 2007. They have entered data and now I need to go back into a table and change a...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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
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
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,...

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.