Greetings.
I have a perplexing problem....please help.
I am having a problem with an insert query. (SQL below)
When I run the query via code (executing the SQL string) it crashes
Access and gives me a Page Fault error in OLEAUT32.dll
When I run the query from the query window it gives the normal "You
are about to run an action query..." then appears to run, yet DOES NOT
give the "You are about to Add 4 rows" message.
When I then close the query (which I can do) and open the table that
is supposed to hold the result....it's not there...
And then trying to close this table results in an
"This Action will reset in break mode - Yes / No" message...
Clicking yes simply repeats the error message adnauseum, clicking No
leaves you in the table with the same problem on trying to close...
So what code is still running?? The insert query? Then why can I close
it?
and any ideas why when the same query is run in code it crashes the
APP.
This behaviour is identical on all machines here at work.
they all are running Office 2000
Some on Windows 98
some on Windows 98se
The ONLY machine that performs correctly is a WinXP laptop running
Office XP.
Any ideas???
Mal.
QUERY SQL IS AS FOLLOWS....beware word wrap..
INSERT INTO tblWebProfile ( lngProfileID, strFName, strMI, strLName,
strAddress, strCity, lngStateID, strZip, strHomePhone, strWorkPhone,
strExt, blnDependant, mmoDependNotes, strEMail, lngConfMethodID,
blnFlag1, blnFlag10, blnFlag2, blnFlag3, blnFlag4, blnFlag5, blnFlag6,
blnFlag7, blnFlag8, blnFlag9, strField1, strField10, strField2,
strField3, strField4, strField5, strField6, strField7, strField8,
strField9, strRefferedBy, strRelationship, strSpouseFName,
strSpouseLName, strSpousePhone )
SELECT [_tblTempWebData].lngProfileID, StrConv(strPFName,3) AS Expr1,
[_tblTempWebData].strPMI, StrConv(strPLName,3) AS Expr2,
StrConv(strPAddress,3) AS Expr3, StrConv(strPCity,3) AS Expr4,
[_tblTempWebData].lngPStateID, [_tblTempWebData].strPZip,
[_tblTempWebData].strPHomePhone, [_tblTempWebData].strWorkPhone,
[_tblTempWebData].strExt, [_tblTempWebData].blnDependant,
First([_tblTempWebData].mmoDependNotes) AS FirstOfmmoDependNotes,
[_tblTempWebData].strPEMail, [_tblTempWebData].lngConfMethodID,
[_tblTempWebData].blnPFlag1, [_tblTempWebData].blnPFlag10,
[_tblTempWebData].blnPFlag2, [_tblTempWebData].blnPFlag3,
[_tblTempWebData].blnPFlag4, [_tblTempWebData].blnPFlag5,
[_tblTempWebData].blnPFlag6, [_tblTempWebData].blnPFlag7,
[_tblTempWebData].blnPFlag8, [_tblTempWebData].blnPFlag9,
First([_tblTempWebData].strPField1) AS FirstOfstrPField1,
First([_tblTempWebData].strPField10) AS FirstOfstrPField10,
First([_tblTempWebData].strPField2) AS FirstOfstrPField2,
First([_tblTempWebData].strPField3) AS FirstOfstrPField3,
First([_tblTempWebData].strPField4) AS FirstOfstrPField4,
First([_tblTempWebData].strPField5) AS FirstOfstrPField5,
First([_tblTempWebData].strPField6) AS FirstOfstrPField6,
First([_tblTempWebData].strPField7) AS FirstOfstrPField7,
First([_tblTempWebData].strPField8) AS FirstOfstrPField8,
First([_tblTempWebData].strPField9) AS FirstOfstrPField9,
[_tblTempWebData].strRefferedBy, [_tblTempWebData].strRelationship,
StrConv(strSpouseFName,3) AS Expr5, StrConv(strSpouseLName,3) AS
Expr6, [_tblTempWebData].strSpousePhone
FROM _tblTempWebData
GROUP BY [_tblTempWebData].lngProfileID, [_tblTempWebData].strPMI,
[_tblTempWebData].lngPStateID, [_tblTempWebData].strPZip,
[_tblTempWebData].strPHomePhone, [_tblTempWebData].strWorkPhone,
[_tblTempWebData].strExt, [_tblTempWebData].blnDependant,
[_tblTempWebData].strPEMail, [_tblTempWebData].lngConfMethodID,
[_tblTempWebData].blnPFlag1, [_tblTempWebData].blnPFlag10,
[_tblTempWebData].blnPFlag2, [_tblTempWebData].blnPFlag3,
[_tblTempWebData].blnPFlag4, [_tblTempWebData].blnPFlag5,
[_tblTempWebData].blnPFlag6, [_tblTempWebData].blnPFlag7,
[_tblTempWebData].blnPFlag8, [_tblTempWebData].blnPFlag9,
[_tblTempWebData].strRefferedBy, [_tblTempWebData].strRelationship,
[_tblTempWebData].strSpousePhone, [_tblTempWebData].strPFName,
[_tblTempWebData].strPLName, [_tblTempWebData].strPAddress,
[_tblTempWebData].strPCity, [_tblTempWebData].strSpouseFName,
[_tblTempWebData].strSpouseLName
ORDER BY [_tblTempWebData].lngProfileID; 2 1916
I ran your sql through my formatter tool ... and with some additional
formatting in Word, I came up with the script that follows. I don't
see anything that looks wrong, but my first suspicion would be on the
table that begins with an underscore. Does it crash if you remove it?
.... or at least change this line
FROM _tblTempWebData
to this ... with brackets
FROM [_tblTempWebData]
INSERT INTO tblWebProfile
( lngProfileID
, strFName
, strMI
, strLName,strAddress
, strCity
, lngStateID
, strZip
, strHomePhone
, strWorkPhone,strExt
, blnDependant
, mmoDependNotes
, strEMail
, lngConfMethodID,blnFlag1
, blnFlag10
, blnFlag2
, blnFlag3
, blnFlag4
, blnFlag5
, blnFlag6,blnFlag7
, blnFlag8
, blnFlag9
, strField1
, strField10
, strField2,strField3
, strField4
, strField5
, strField6
, strField7
, strField8,strField9
, strRefferedBy
, strRelationship
, strSpouseFName,strSpouseLName
, strSpousePhone )
SELECT
[_tblTempWebData].lngProfileID
, StrConv(strPFName,3) AS Expr1
, [_tblTempWebData].strPMI
, StrConv(strPLName,3) AS Expr2
, StrConv(strPAddress,3) AS Expr3
, StrConv(strPCity,3) AS Expr4
, [_tblTempWebData].lngPStateID
, [_tblTempWebData].strPZip
, [_tblTempWebData].strPHomePhone
, [_tblTempWebData].strWorkPhone
, [_tblTempWebData].strExt
, [_tblTempWebData].blnDependant
, First([_tblTempWebData].mmoDependNotes) AS FirstOfmmoDependNotes
, [_tblTempWebData].strPEMail
, [_tblTempWebData].lngConfMethodID
, [_tblTempWebData].blnPFlag1
, [_tblTempWebData].blnPFlag10
, [_tblTempWebData].blnPFlag2
, [_tblTempWebData].blnPFlag3
, [_tblTempWebData].blnPFlag4
, [_tblTempWebData].blnPFlag5
, [_tblTempWebData].blnPFlag6
, [_tblTempWebData].blnPFlag7
, [_tblTempWebData].blnPFlag8
, [_tblTempWebData].blnPFlag9
, First([_tblTempWebData].strPField1) AS FirstOfstrPField1
, First([_tblTempWebData].strPField10) AS FirstOfstrPField10
, First([_tblTempWebData].strPField2) AS FirstOfstrPField2
, First([_tblTempWebData].strPField3) AS FirstOfstrPField3
, First([_tblTempWebData].strPField4) AS FirstOfstrPField4
, First([_tblTempWebData].strPField5) AS FirstOfstrPField5
, First([_tblTempWebData].strPField6) AS FirstOfstrPField6
, First([_tblTempWebData].strPField7) AS FirstOfstrPField7
, First([_tblTempWebData].strPField8) AS FirstOfstrPField8
, First([_tblTempWebData].strPField9) AS FirstOfstrPField9
, [_tblTempWebData].strRefferedBy
, [_tblTempWebData].strRelationship
, StrConv(strSpouseFName,3) AS Expr5
, StrConv(strSpouseLName,3) ASExpr6
, [_tblTempWebData].strSpousePhone
FROM _tblTempWebData
GROUP BY
[_tblTempWebData].lngProfileID
, [_tblTempWebData].strPMI
, [_tblTempWebData].lngPStateID
, [_tblTempWebData].strPZip
, [_tblTempWebData].strPHomePhone
, [_tblTempWebData].strWorkPhone
, [_tblTempWebData].strExt
, [_tblTempWebData].blnDependant
, [_tblTempWebData].strPEMail
, [_tblTempWebData].lngConfMethodID
, [_tblTempWebData].blnPFlag1
, [_tblTempWebData].blnPFlag10
, [_tblTempWebData].blnPFlag2
, [_tblTempWebData].blnPFlag3
, [_tblTempWebData].blnPFlag4
, [_tblTempWebData].blnPFlag5
, [_tblTempWebData].blnPFlag6
, [_tblTempWebData].blnPFlag7
, [_tblTempWebData].blnPFlag8
, [_tblTempWebData].blnPFlag9
, [_tblTempWebData].strRefferedBy
, [_tblTempWebData].strRelationship
, [_tblTempWebData].strSpousePhone
, [_tblTempWebData].strPFName
, [_tblTempWebData].strPLName
, [_tblTempWebData].strPAddress
, [_tblTempWebData].strPCity
, [_tblTempWebData].strSpouseFName
, [_tblTempWebData].strSpouseLName
ORDER BY
[_tblTempWebData].lngProfileID;
--
Danny J. Lesandrini dl*********@hotmail.com http://amazecreations.com/datafast
"Mal" <ma******@hotmail.com> wrote ... Greetings. I have a perplexing problem....please help.
I am having a problem with an insert query. (SQL below)
When I run the query via code (executing the SQL string) it crashes Access and gives me a Page Fault error in OLEAUT32.dll
When I run the query from the query window it gives the normal "You are about to run an action query..." then appears to run, yet DOES NOT give the "You are about to Add 4 rows" message.
When I then close the query (which I can do) and open the table that is supposed to hold the result....it's not there...
And then trying to close this table results in an "This Action will reset in break mode - Yes / No" message... Clicking yes simply repeats the error message adnauseum, clicking No leaves you in the table with the same problem on trying to close...
So what code is still running?? The insert query? Then why can I close it?
and any ideas why when the same query is run in code it crashes the APP.
This behaviour is identical on all machines here at work. they all are running Office 2000 Some on Windows 98 some on Windows 98se
The ONLY machine that performs correctly is a WinXP laptop running Office XP.
Any ideas??? Mal.
I will need to return to work to try the code you provided.
however...
If the _tblTempWebData table is empty....(actually it has header row
imported from the txt file that creates it...but no data)
then the code won't crash at all....
strange...
Mal.
"Danny J. Lesandrini" <dl*********@hotmail.com> wrote in message
news:bt************@ID-82595.news.uni-berlin.de... I ran your sql through my formatter tool ... and with some additional formatting in Word, I came up with the script that follows. I don't see anything that looks wrong, but my first suspicion would be on the table that begins with an underscore. Does it crash if you remove it?
... or at least change this line FROM _tblTempWebData to this ... with brackets FROM [_tblTempWebData]
INSERT INTO tblWebProfile ( lngProfileID , strFName , strMI , strLName,strAddress , strCity , lngStateID , strZip , strHomePhone , strWorkPhone,strExt , blnDependant , mmoDependNotes , strEMail , lngConfMethodID,blnFlag1 , blnFlag10 , blnFlag2 , blnFlag3 , blnFlag4 , blnFlag5 , blnFlag6,blnFlag7 , blnFlag8 , blnFlag9 , strField1 , strField10 , strField2,strField3 , strField4 , strField5 , strField6 , strField7 , strField8,strField9 , strRefferedBy , strRelationship , strSpouseFName,strSpouseLName , strSpousePhone ) SELECT [_tblTempWebData].lngProfileID , StrConv(strPFName,3) AS Expr1
, [_tblTempWebData].strPMI , StrConv(strPLName,3) AS Expr2
, StrConv(strPAddress,3) AS Expr3 , StrConv(strPCity,3) AS Expr4
, [_tblTempWebData].lngPStateID , [_tblTempWebData].strPZip
, [_tblTempWebData].strPHomePhone , [_tblTempWebData].strWorkPhone
, [_tblTempWebData].strExt , [_tblTempWebData].blnDependant
, First([_tblTempWebData].mmoDependNotes) AS FirstOfmmoDependNotes
, [_tblTempWebData].strPEMail , [_tblTempWebData].lngConfMethodID
, [_tblTempWebData].blnPFlag1 , [_tblTempWebData].blnPFlag10
, [_tblTempWebData].blnPFlag2 , [_tblTempWebData].blnPFlag3
, [_tblTempWebData].blnPFlag4 , [_tblTempWebData].blnPFlag5
, [_tblTempWebData].blnPFlag6 , [_tblTempWebData].blnPFlag7
, [_tblTempWebData].blnPFlag8 , [_tblTempWebData].blnPFlag9
, First([_tblTempWebData].strPField1) AS FirstOfstrPField1
, First([_tblTempWebData].strPField10) AS FirstOfstrPField10
, First([_tblTempWebData].strPField2) AS FirstOfstrPField2
, First([_tblTempWebData].strPField3) AS FirstOfstrPField3
, First([_tblTempWebData].strPField4) AS FirstOfstrPField4
, First([_tblTempWebData].strPField5) AS FirstOfstrPField5
, First([_tblTempWebData].strPField6) AS FirstOfstrPField6
, First([_tblTempWebData].strPField7) AS FirstOfstrPField7
, First([_tblTempWebData].strPField8) AS FirstOfstrPField8
, First([_tblTempWebData].strPField9) AS FirstOfstrPField9
, [_tblTempWebData].strRefferedBy , [_tblTempWebData].strRelationship
, StrConv(strSpouseFName,3) AS Expr5 , StrConv(strSpouseLName,3) ASExpr6 , [_tblTempWebData].strSpousePhone
FROM _tblTempWebData GROUP BY [_tblTempWebData].lngProfileID , [_tblTempWebData].strPMI
, [_tblTempWebData].lngPStateID , [_tblTempWebData].strPZip
, [_tblTempWebData].strPHomePhone , [_tblTempWebData].strWorkPhone
, [_tblTempWebData].strExt , [_tblTempWebData].blnDependant
, [_tblTempWebData].strPEMail , [_tblTempWebData].lngConfMethodID
, [_tblTempWebData].blnPFlag1 , [_tblTempWebData].blnPFlag10
, [_tblTempWebData].blnPFlag2 , [_tblTempWebData].blnPFlag3
, [_tblTempWebData].blnPFlag4 , [_tblTempWebData].blnPFlag5
, [_tblTempWebData].blnPFlag6 , [_tblTempWebData].blnPFlag7
, [_tblTempWebData].blnPFlag8 , [_tblTempWebData].blnPFlag9
, [_tblTempWebData].strRefferedBy , [_tblTempWebData].strRelationship
, [_tblTempWebData].strSpousePhone , [_tblTempWebData].strPFName
, [_tblTempWebData].strPLName , [_tblTempWebData].strPAddress
, [_tblTempWebData].strPCity , [_tblTempWebData].strSpouseFName
, [_tblTempWebData].strSpouseLName ORDER BY [_tblTempWebData].lngProfileID;
--
Danny J. Lesandrini dl*********@hotmail.com http://amazecreations.com/datafast
"Mal" <ma******@hotmail.com> wrote ... Greetings. I have a perplexing problem....please help.
I am having a problem with an insert query. (SQL below)
When I run the query via code (executing the SQL string) it crashes Access and gives me a Page Fault error in OLEAUT32.dll
When I run the query from the query window it gives the normal "You are about to run an action query..." then appears to run, yet DOES NOT give the "You are about to Add 4 rows" message.
When I then close the query (which I can do) and open the table that is supposed to hold the result....it's not there...
And then trying to close this table results in an "This Action will reset in break mode - Yes / No" message... Clicking yes simply repeats the error message adnauseum, clicking No leaves you in the table with the same problem on trying to close...
So what code is still running?? The insert query? Then why can I close it?
and any ideas why when the same query is run in code it crashes the APP.
This behaviour is identical on all machines here at work. they all are running Office 2000 Some on Windows 98 some on Windows 98se
The ONLY machine that performs correctly is a WinXP laptop running Office XP.
Any ideas??? Mal.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Niel |
last post by:
Hello friends,
I think this issue has been posted before but i have not been able to get
any solution that is why i am posting it again in detail as to
what exactly is happneing in my case. Hope...
|
by: Jonathan |
last post by:
I am looking for a simple way to check if a database table exists. I
keep getting advice to use "Try.. Catch" and other error handling
methods, but I obviously don't want to have to display an...
|
by: Stefan Hinz |
last post by:
Degan,
jumping in to try and solve some problems that look pretty obvious to
me ...
> #options for default service (mysqld2)
> (mysqld2)
It should be , not (mysqld2).
|
by: Torrent |
last post by:
When Trying to Load an XSLT File with the XslTransform i got a rather annoying Exception being thrown "System.Xml.XPath.XPathException: XsltContext is needed for this query because of an unknown...
|
by: Colleyville Alan |
last post by:
I am trying to run an update query to take information in a field and remove
the last 4 chars. For example, the following piece of data: DAA1.CTF,
should be converted to DAA1 (without the ".CTF")....
|
by: Skybuck Flying |
last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C
compilers produce so many error messages as soon as a closing bracket is
missing. The response was simply because the compiler...
|
by: James Radke |
last post by:
Hello,
I am attempting to use the proper Try/Catch technique when accessing my
Microsoft SQL server database and have a question...
If I use something similar to the following:
Try
set up...
|
by: p |
last post by:
I'm trying to put a query into VBA code and its giving me difficulties.
I would like to put the following query:
SELECT tbl_Workload.Priority, tbl_Workload.Number AS Num,
tbl_Workload.Name,...
|
by: kcdoell |
last post by:
Hello:
What is the best way to stop a report from running if the query is empty? Currently, I have a form that has a command button on it. The user has to make selections from 3 combo boxes on...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |