Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Run time error (28) when using Windows XP, but not Windows 2000Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v7 Forum

 New Topic 
 
 Post Reply 
[1]  
 Run time error (28) when using Windows XP, but not Windows 2000 
 Author   Message 
  j camhi 
  
 Group: Members 
 Posts: 4 
 Joined: 2007-07-13 
 Profile
 Posted : 2007-07-13 05:52:48
We have four machines using the ODBC driver with Quickbooks and Access 2003 that work perfectly fine.  The odd machine is a slightly higher version of Access with Windows XP and gets hung up when processing a query.  With Quickbooks help, I have tested the ODBC driver on the XP machine and it  runs a test query fine.  It is only when Access 2003 enteres into the mix that it does not work.   All machines are pulling from the same database.

Any ideas would be great.

Joyce 

 
Joyce Camhi 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-07-13 08:44:22

This sounds like a "Out of Stack Space" error when running a Sub Procedure in Access 2003. When you run a Visual Basic Sub procedure that calls another procedure, you may receive the following error message:

Run-time error '28':
Out of stack space

CAUSE
This error message appears when one procedure in your module calls another procedure, and that procedure calls another procedure, and so on. The error message occurs in this case because when you call one sub procedure from another procedure, the first procedure is not unloaded from memory until the procedure that it called is finished. Because of this behavior, if you continue to call a procedure from another procedure, you may run out of stack space, or memory allotted for the macro, before the last procedure is called.

WORKAROUND
To work around this problem, call individual sub procedures from one main procedure, instead of calling one sub procedure from another sub procedure, and so on. For example, if you are calling sub procedures as in the following example

   Sub one()
      two
   End Sub

   Sub two()
      three
   End Sub

   Sub three()
      four
   End Sub
  
you can call these sub procedures from the first procedure as in the following example:   

   Sub Main()
      one
      two
      three
      four
   End Sub
    

 

  Top 
  j camhi 
  
 Group: Members 
 Posts: 4 
 Joined: 2007-07-13 
 Profile
 Posted : 2007-07-14 00:19:42
Tom,
Thanks for the suggestion.  I will pass it on to our support people and let you know the outcome.

Joyce 

 
Joyce Camhi 
 
  Top 
  j camhi 
  
 Group: Members 
 Posts: 4 
 Joined: 2007-07-13 
 Profile
 Posted : 2007-07-17 00:30:16
Tom,
The following is the response from our IT person regarding this run time error problem. (Out of stack space):

"I get what they're saying, but I don't think we're running nested
procedures. Just queries. Now some of those queries may have "inner join"
type structures that run like a nested procedure, but even then it would be
only one level deep. Something else must be the problem...... and besides if
the query structure was the problem, you'd be having it on all machines....."

Now for my  added comment- Is it possible that there is something different in Windows XP  and Windows 2000 in regards  to the QODBC  that is causing this error to ONLY happen on the Windows XP machine?

Your troubleshooting help is greatly appreciated,
Joyce 

 
Joyce Camhi 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-07-17 08:09:14

Windows XP and now Vista are the main operating platforms for QODBC. I don't have any other reports of "Out of Stack" MS Access 2003 runtime errors. I suggest you run the query in question in VB Demo and then as a new pass-through query in Access to determine what's causing the problem.

See: How do I create a Pass-Through Report using Microsoft Access 2003? for more information.

 

  Top 
  j camhi 
  
 Group: Members 
 Posts: 4 
 Joined: 2007-07-13 
 Profile
 Posted : 2007-07-19 04:59:10
Tom,
The VB demo worked on the Windows XP machine when guided by Quickbooks people .  I cannot get the Pass Through to work on both the Windows 2000 or the XP machine.. When running the Pass Through Query  I get the error ODBC failed 3262.  Data file has to be sebscribed to Intuit Payroll Service.  Quickbooks message 10057.  We do subcribe to Intuit payroll services.

I just want to clarify that the QODBC is working on the Windows 2000 machines, it does NOT work on the XP machine.

Thanks again for the next step,
Joyce 

 
Joyce Camhi 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-07-19 07:28:19

Let's get away from the payroll tables, how does a:

SELECT * from Customer

go?

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to