Connecting Tech Pros Worldwide Forums | Help | Site Map

Queries not showing up

Newbie
 
Join Date: Aug 2007
Location: Dallas, TX
Posts: 2
#1: Aug 24 '07
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.

Rabbit's Avatar
Expert
 
Join Date: Jan 2007
Location: California
Posts: 3,835
#2: Aug 24 '07

re: Queries not showing up


They're probably just hidden. Tools > Options > View tab > Hidden Objects checkbox.
Newbie
 
Join Date: Aug 2007
Location: Dallas, TX
Posts: 2
#3: Aug 24 '07

re: Queries not showing up


Quote:

Originally Posted by Rabbit

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?
Rabbit's Avatar
Expert
 
Join Date: Jan 2007
Location: California
Posts: 3,835
#4: Aug 24 '07

re: Queries not showing up


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.
Reply