Hi All,
I have a database in Access 97 which works fine but our company is
converting from NT4 to XP Pro and in the process changing Office 97 for
Office 2003. I have tried to convert the 97 database into Access 2003 but
the Autoexec macro falls over on the query below. I have tried running it
separayely and the computer just hangs.
I realise there is a lot of code below, but I'm hoping somebody may know
what they are looking for...
Any help would be massively appreciated.
Thanks in Advance,
John
INSERT INTO Vendor_Preforma nce_Policing_Ta ble ( TYPE, IPT, CUSTOMER_2,
MaxOfGR_Temp, [PO CREATE DATE], [ORDER REQUEST], [OR LINE], GR_Date,
Supply_Source, [QTY REQD], [QTY O/S], Proj_No, [PART NUMBER], [PO NO], [PO
LINE], Release_No, BUYER, STATUS, REQDT, AQUISITION, PROM_Date, CONT_Date,
Cost_Stat, Cost_Price, Price_code, NSN, PRI, Sell_PRICE, [Key], FC_DATE,
Keyword )
SELECT MMS_Vendor_Roll .TYPE, MMS_Vendor_Roll .IPT,
MMS_Vendor_Roll .CUSTOMER_2, Max(MMS_Vendor_ Roll.GR_Temp) AS MaxOfGR_Temp,
MMS_Vendor_Roll .[PO CREATE DATE],
IIf([Details_Table]![IPT]="Tornado2",Mid ([Details_Table]![COL_Link],9,10),[M
MS_Vendor_Roll]![ORDER REQUEST]) AS Expr2, MMS_Vendor_Roll .[OR LINE],
IIf([MaxOfGR_Temp]=Date(),"",[MaxOfGR_Temp]) AS GR_Date,
MMS_Vendor_Roll .VENDOR, Sum(MMS_Vendor_ Roll.[QTY REQD]) AS [SumOfQTY REQD],
Sum(MMS_Vendor_ Roll.[QTY O/S]) AS [SumOfQTY O/S],
First(MMS_Vendo r_Roll.Proj_No) AS FirstOfProj_No, MMS_Vendor_Roll .[PART
NUMBER], MMS_Vendor_Roll .[PO NO], MMS_Vendor_Roll .[PO LINE],
Max(MMS_Vendor_ Roll.[OR SCHED]) AS [MaxOfOR SCHED],
First(MMS_Vendo r_Roll.BUYER) AS FirstOfBUYER, Min(MMS_Vendor_ Roll.STATUS) AS
MinOfSTATUS, MMS_Vendor_Roll .[REQD DATE], MMS_Vendor_Roll .AQUISITION,
Max(MMS_Vendor_ Roll.[PROM DATE]) AS [MaxOfPROM DATE], MMS_Vendor_Roll .[CONT
DATE], Max(MMS_Vendor_ Roll.[PRICE TYPE]) AS [MaxOfPRICE TYPE],
Max(MMS_Vendor_ Roll.[TOTAL STG PRICE]) AS [MaxOfTOTAL STG PRICE],
Max(Details_Tab le.Price_code) AS MaxOfPrice_code , Max(Details_Tab le.nsn) AS
MaxOfnsn, Max(Details_Tab le.PRI) AS MaxOfPRI,
Max(IIf(Left([MMS_Vendor_Roll]![Proj_No],3)="39V" Or
Left([MMS_Vendor_Roll]![Proj_No],3)="39N",0,[Details_Table]![Sell_PRICE]))
AS Sell_PRICE, [ORDER REQUEST] & [OR LINE] AS Expr1,
Max(Details_Tab le.FC_DATE) AS MaxOfFC_DATE,
COOP_Purchase_O rders_Table.Key word
FROM (MMS_Vendor_Rol l LEFT JOIN Details_Table ON (MMS_Vendor_Rol l.Link =
Details_Table.M MS_Link) AND (MMS_Vendor_Rol l.Link_Seq = Details_Table.S eq))
LEFT JOIN COOP_Purchase_O rders_Table ON Details_Table.P O_Number =
COOP_Purchase_O rders_Table.PO_ Number
GROUP BY MMS_Vendor_Roll .TYPE, MMS_Vendor_Roll .IPT,
MMS_Vendor_Roll .CUSTOMER_2, MMS_Vendor_Roll .[PO CREATE DATE],
IIf([Details_Table]![IPT]="Tornado2",Mid ([Details_Table]![COL_Link],9,10),[M
MS_Vendor_Roll]![ORDER REQUEST]), MMS_Vendor_Roll .[OR LINE],
MMS_Vendor_Roll .VENDOR, MMS_Vendor_Roll .[PART NUMBER], MMS_Vendor_Roll .[PO
NO], MMS_Vendor_Roll .[PO LINE], MMS_Vendor_Roll .[REQD DATE],
MMS_Vendor_Roll .AQUISITION, MMS_Vendor_Roll .[CONT DATE], [ORDER REQUEST] &
[OR LINE], COOP_Purchase_O rders_Table.Key word
HAVING (((MMS_Vendor_R oll.IPT)<>"civi l")); 2 1964
John Ortt wrote: Hi All,
I have a database in Access 97 which works fine but our company is converting from NT4 to XP Pro and in the process changing Office 97 for Office 2003. I have tried to convert the 97 database into Access 2003 but the Autoexec macro falls over on the query below. I have tried running it separayely and the computer just hangs.
I realise there is a lot of code below, but I'm hoping somebody may know what they are looking for...
I don't see any code at all, just an SQL statement.
Are you sure this is what the conversion fails on?
Did you compile the mdb in A97 first? Usually this will tell you were
problems may be in code (real code, not SQL statements) that can be
corrected.
I haven't used macros in many years, but can you remove the line that
has this query and successfully convert then? If so, have you tried
simply constructing the query right from scratch in A2003?
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Sorry Tim,
I didn't explain correctly. The Autoexec is a macro and it simply
references the SQL query I had attached.
I tried running the query on it's own in both 97 and 2003 and the 2003
version hangs while the 97 one works (albeit fairly slowly).
I did try creating the entire query again but it didn't work.
I guess I will just have to try deleting sections of the query to try to
narrow down the failure point.
Thanks anyway Tim.
"Tim Marshall" <TI****@PurpleP andaChasers.Moe rtherium> wrote in message
news:cu******** **@coranto.ucs. mun.ca... John Ortt wrote:
Hi All,
I have a database in Access 97 which works fine but our company is converting from NT4 to XP Pro and in the process changing Office 97 for Office 2003. I have tried to convert the 97 database into Access 2003
but the Autoexec macro falls over on the query below. I have tried running
it separayely and the computer just hangs.
I realise there is a lot of code below, but I'm hoping somebody may know what they are looking for...
I don't see any code at all, just an SQL statement.
Are you sure this is what the conversion fails on?
Did you compile the mdb in A97 first? Usually this will tell you were problems may be in code (real code, not SQL statements) that can be corrected.
I haven't used macros in many years, but can you remove the line that has this query and successfully convert then? If so, have you tried simply constructing the query right from scratch in A2003? -- Tim http://www.ucs.mun.ca/~tmarshal/ ^o< /#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake /^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Russell |
last post by:
I'm having a fit with a query for a range of dates. The dates are
being returned from a view. The table/field that they are being
selected from stores them as varchar and that same field also stores
other fields from our dynamic forms. The field is called
'FormItemAnswer' and stores text, integer, date, float, etc. Anything
the user can type into one of our web forms. The query looks like,
select distinct from...
|
by: chicha |
last post by:
Hey people,
I have to convert MS Access 2000 database into mysql database, the whole
thing being part of this project I'm doing for one of my faculty
classes. My professor somehow presumed I knew db's and gave me long list
of things to do with that particular database, first thing being that
particular conversion. Truth is that I don't know a first thing about
db's, let alone using mysql... I downloaded mysql form www.mysql.com and...
|
by: David |
last post by:
Hi,
I want to work with Access 2002.
I will need to be able to distribute my application to users that may
still have access 2000 on their computers. I know access 2002 has a
function that enables you to convert a database to a format of an
earlier version of Access. I wanted to check for any unforeseen
problems so here is what I did:
I used Access 2002 to convert my Access 2000 application to the 2002
|
by: Wayne Aprato |
last post by:
I have several Access 2003 mde databases. When I try to open them in
Access 2002 I get the following error:
"The Visual Basic for Applications project in the database is
corrupt."
Interestingly I can open the mdb files of the same 2003 databases in
Access 2002 without problems. To my understanding the file formats of
2002 and 2003 are the same and this problem shouldn't exist. And why
is it only the mde files that are giving the...
|
by: (Pete Cresswell) |
last post by:
I've got everything in 2000 format right now, but it's now clear that all of the
clients will be running 2003.
Is there any advantage in converting?
--
PeteCresswell
| |
by: Beacher |
last post by:
The following code gives me the error "syntax error converting datetime
to character string" im using access 2003 as a front end and sql server
2000 as a backend
strSQL = "INSERT INTO tblDeal (dealRecipient, dealStartDate,
dealEndDate, dealType) VALUES (" & Me.txtrec.Value & "," & "'#" &
Me.dealStartDate.Value & "#'" & "," & Me.dealEndDate.Value & "," & "'"
& Me.dealType & "'" & ")"
The specific part its complaining about is "'#" &
|
by: Bogdan Zamfir |
last post by:
Hi,
I use an Access BE, and I need to use an update SQL query to update a
datetime field
In my locale date format is dd/mm/yy, but in Access SQL date must bhe
formatted as mm/dd/yy in order to be able to update database, as follows
Update Project set EndDate = "01/31/03" where ProjectID = 100
So I have to convert my date 31 january 2003 to US format (mm/dd/yy)
|
by: Jan Olof Jonsson |
last post by:
Hello.
We hawe a problem with the Excel-program on a public webserver.
Excel is installated to convert/produce HTML - documents to a website on the
server when client users in a webinterface upload Excel-documents for
converting and publishing to the site.
It is on a Microsoft Windows Server 2003 Standard Edition with a IIS-server,
Version: 6.0. with a .net application running the websolution.
The problem is that the dateformat in...
|
by: pdavis06 |
last post by:
I know that there is a thread about this, but I was unable to add to it; I just joined. The problem is that I do not want to change the date format for the entire database output, merely for a header on a report and for a field on that report.
I thought that I could just go into the expression builder and paste one of the codes that were posted in the thread about this conversion-you'll know that did not work.
So, I went to the new...
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |