|
-
Apr 5th, 2001, 11:53 AM
#1
Thread Starter
Member
Ok well basically i have a field in my database with a forward slash in the middle of the field name. The first Sql statement works perfectly where i've omitted the field. And the second one where i put it in.. does not work.
If anyone has any ideas or suggestions i'd appreciate it greatly. I've been working on this program for about two months and something so rediculous as an sql statement error is killing me. Thanks Again
Set rstTemp = conMAS90.OpenRecordset("
SELECT ARN_InvHistoryHeader.CustomerNumber,
ARN_InvHistoryHeader.InvoiceNumber,
ARN_InvHistoryHeader.SOOrderDate,
ARN_InvHistoryHeader.SOShipDate,
ARN_InvHistoryHeader.SOSourceJournal,
ARO_InvHistoryDetail.SOItemNumber,
ARO_InvHistoryDetail.SOHasPriceBeenOverridden,
ARO_InvHistoryDetail.SOQtyShipped,
ARO_InvHistoryDetail.SOUnitPrice
FROM ARN_InvHistoryHeader, ARO_InvHistoryDetail
", dbOpenDynamic)
Set rstTemp = conMAS90.OpenRecordset("SELECT ARN_InvHistoryHeader.CustomerNumber, ARN_InvHistoryHeader.InvoiceNumber, ARN_InvHistoryHeader.SOOrderDate, ARN_InvHistoryHeader.SOShipDate, ARN_InvHistoryHeader.SOSourceJournal, ARO_InvHistoryDetail.SOItemNumber, ARO_InvHistoryDetail.SOHasPriceBeenOverridden, ARO_InvHistoryDetail.SOQtyShipped, ARO_InvHistoryDetail.SOUnitPrice, ARO_InvHistoryDetail.Extd/ChargeAmount FROM ARN_InvHistoryHeader, ARO_InvHistoryDetail ", dbOpenDynamic)
~Jay
-
Apr 5th, 2001, 12:36 PM
#2
Addicted Member
Yeah... try using brackets.....
ARO_InvHistoryDetail.[Extd/ChargeAmount]
-
Apr 6th, 2001, 08:06 AM
#3
Thread Starter
Member
the brackets didnt work.. I tried every form of bracket on my keyboard..
any other ideas?
Thanks again..
~Jay
-
Apr 6th, 2001, 08:48 AM
#4
Addicted Member
Which data access method are you using... DAO, or ADO?? Also, what database are you using? I know the brackets work with ADO 2.1 and with an Access 2000 database.
-
Apr 6th, 2001, 08:52 AM
#5
Addicted Member
So sorry.... I didn't remember that the heading of this post says DAO... I feel like an idiot... let me check into special characters and DAO
-
Apr 6th, 2001, 10:07 AM
#6
Thread Starter
Member
specifically the database is from a warehouse package software called sotamas90. I dont think that will help much.. its got its own ODBC driver and everything..
I really appreciate the help..
~Jay
-
Apr 9th, 2001, 08:42 AM
#7
Thread Starter
Member
Well i'm still looking.. cant find any solutions. If anyone finds a solution please post it for me.. thank yoou.
~Jason
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|