473,806 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Catastrophic noob... can anyone help?

So I'm new to access and I keep getting this "catastroph ic error" when
running this function. I my mind, all I'm doing is a nested for each
loop with RecordSets Vs collections.

The kicker is, this string will work fine:
' curLine = "call AddBom(""" + inParent + """, """ + curChild +
""",""" + curQty + """)"

But this one give me a "catastroph ic error"
'curLine = "call AddBom(""" + inParent + """, """ + curChild +
""",""" + curQty + """,""" + curSeq + """,""" + curPhantom + """)"

I've tried removing all the additional ""'s to no avail. Any ideas?
Thank you, thank you, thank you.
'partial code -- calls problem function
If Not rsAllParents.EO F Then rsAllParents.Mo veFirst
Do While Not rsAllParents.EO F
DoEvents

If (rsAllParents!P artNum <> vbNullString) Then
Call CreateFinalOutp ut(rsAllParents !PartNum, _
rsAllParents!Ma keOrBuy)
End If

rsAllParents.Mo veNext
Loop
rsAllParents.Cl ose
Public Function CreateFinalOutp ut(inParent As String, inMOBY As
Integer)

Dim rsChildren As ADODB.Recordset
Dim rsAutoBOMtempla te As ADODB.Recordset
Dim rsAutoBOMtempla te2 As ADODB.Recordset
Dim db As Database
Dim rsAdd As ADODB.Recordset
Dim OutputList As New Collection

Dim sqlcmd As String

Dim curParent As String
Dim curChild As String
Dim curQty As String
Dim curLine As String
Dim curSeq As String 'Make or Buy - Yes? sequence makes as
990's in BOM
Dim curPhantom As String 'is assembly? then code as phantom in BOM

curLine = ""
curParent = ""
curChild = ""
curQty = ""
curSeq = ""
curPhantom = ""

Set rsChildren = New ADODB.Recordset
Set rsAutoBOMtempla te = New ADODB.Recordset
Set rsAutoBOMtempla te2 = New ADODB.Recordset
Set rsAdd = New ADODB.Recordset
Set db = Application.Cur rentDb

'Select items to drive loop
sqlcmd = "SELECT * " & _
"FROM tblOutput where Parent = '" & inParent & "'"

rsChildren.Open sqlcmd, CurrentProject. Connection, adOpenKeyset,
adLockOptimisti c

If Not rsChildren.EOF Then rsChildren.Move First
Do While Not rsChildren.EOF

curQty = rsChildren!Quan tity
curChild = rsChildren!Chil d
isAssy = rsChildren!isAs sy
'If (isAssy) Then
'curPhantom = "p"
'End If
'If (inMOBY = 12) Then 'see ECN.mdb tblTypeDetail [ID 12 =
Make]
' curSeq = "990"
'End If

'curLine = "call AddBom(""" + inParent + """, """ + curChild +
""",""" + curQty + """,""" + curSeq + """,""" + curPhantom + """)"
curLine = "call AddBom(""" + inParent + """, """ + curChild +
""",""" + curQty + """)"

sqlcmd = "insert INTO tblFinalOut (FunCalls) " & _
" VALUES (" & _
"'" & Replace(curLine , "#", "") & "')"

rsAdd.Open sqlcmd, CurrentProject. Connection, adOpenKeyset,
adLockOptimisti c

rsChildren.Move Next
Loop
rsChildren.Clos e

Set db = Nothing

End Function

Nov 13 '05 #1
0 1229

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2147
by: Ivan Shevanski | last post by:
Alright heres another noob question for everyone. Alright, say I have a menu like this. print "1. . .Start" print "2. . .End" choice1 = raw_input("> ") and then I had this to determine what option.
0
444
by: Veibert M Pinontoan | last post by:
I try to create wrapper for WMSyncReader. The code is :using System; using System.Runtime.InteropServices; namespace WMFSDKWrapper { public class WMFSDKFunctions { public static extern uint WMCreateSyncReader( System.Object pUnkReserved,
0
2199
by: miqbal | last post by:
IM getting this error when i try to run Teecharts ActiveX control in asp.net environment can some one help me in it Regards Moid Iqbal Catastrophic failure Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information
2
8448
by: jdanoz | last post by:
Hello, i have a vb.net project with a reference to an ActiveX object (ocx). If i try to use the ocx from vb6 project (adding the reference) it works ok (using CreateObject). In vb.net, the CreateObject works ok, the object gets initialized...
0
1337
by: joef | last post by:
I'm running VS.net on my PC (W2K) connected to a remote IIS server (W2K) SP4 that is not a domain controller. I've got the ASPNET and IWAM accounts in the "Impersonate a client after authentication" user rights on the server. I'm in the local admins and debuggers groups. When trying to debug, I'm getting the: Error while trying to run project: Unable to start debugging on the web server. Catastrophic failure
2
6258
by: Frav | last post by:
The Reps team have been experiencing that Access 2002 unexpectedly quits while working and also lots of Corruption Failures and "Record lock can not update" messages since the upgrade from Windows 2000 and Access 200 to Windows XP and Access 2002 (XP) was done. Now, they are working and at anytime in anywhere of the application access unexpectedly quits with no error messages and the info that was being entered
0
2662
by: cybertoast | last post by:
(Config: SQLServer2005, MySQL5.0 and MySQL4.0 all running on Windows2003 server) I've created linked servers to my MySQL servers from SQL server, and had no problem for several months. I was using the MySQL ODBC 3.51.12 Driver. I upgraded to the 3.51.14 driver and have started having problems. Obviousyl the first thing I did was revert to the 3.51.12 driver, but things are still failing. What happening is: my linked servers work...
1
15549
by: santoshsri | last post by:
Hello, While opening an excel worksheet having macros , I get Error "System Error &H8000FFFF Catastrophic failure". When I click on Ok button , I see another message box as Microsoft Visual Basic : Out of memory , what does it mean ? My PC has 2 GB ram with 3 Ghz P4 processor. I don't see any memory shortage problem. I can open and work on same worksheet successfully on other PCs of same configuration. Can anyone please help me on...
1
2536
by: Fluffy654 | last post by:
First off I am a complete noob when it comes to doing anything with servers. I'm just beginning to learn today because I need to start adding SSI to my websites. I apologise in advance if I am making a really obvious mistake. To test this, I have successfully installed apache and have read the official documentation on how to get SSI functionality working. Unfortunately, I can't get it to work at all. After reading tons of threads on this...
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9597
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
10618
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...
1
10371
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
10110
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
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
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
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.