Hi
This may be a really easy answer for you! I usually work with Oracle
but have an Access project to work on.
I have a table of clients (name, addr1, addr2, addr3, pcode etc) which
I need to use as a basis for a query result set which will include
literal values for an accounting package.
The way I do this in Oracle is:
select tabname.col1,ta bname.col2,tabn ame.col3,tabnam e.col4,"28 Days
From Receipt of Invoice","500", "4027 Unrestricted
Income",tabname .col5,tabname.c ol6
from tabname
where tabname.col7=sy sdate;
How do I put the literal values into an Access query?
Thanks for your help
Karen 3 1743
"Karen" <ka***********@ dsl.pipex.com> wrote in message
news:c1******** *************** ***@posting.goo gle.com... Hi
This may be a really easy answer for you! I usually work with Oracle but have an Access project to work on.
I have a table of clients (name, addr1, addr2, addr3, pcode etc) which I need to use as a basis for a query result set which will include literal values for an accounting package.
The way I do this in Oracle is:
select tabname.col1,ta bname.col2,tabn ame.col3,tabnam e.col4,"28 Days From Receipt of Invoice","500", "4027 Unrestricted Income",tabname .col5,tabname.c ol6 from tabname where tabname.col7=sy sdate;
How do I put the literal values into an Access query?
Thanks for your help
Karen
Use the word AS to alias the field:
SELECT tabname.col1, tabname.Col2,
245 AS SomeNumber, "Hello" AS SomeText
FROM tabname
WHERE tabname.col7=Da te()
Fletcher
If I understand your question correctly, you just need to alias them so that
those fields have names:
select tabname.col1,ta bname.col2,tabn ame.col3,tabnam e.col4,"28 Days
From Receipt of Invoice" AS Title1,"500" AS Title2,"4027 Unrestricted
Income" AS Title3,tabname. col5,tabname.co l6
from tabname
where tabname.col7=Da te();
Note that I've also changed the Oracle sysdate to the Access Date().
HTH
- Turtle
"Karen" <ka***********@ dsl.pipex.com> wrote in message
news:c1******** *************** ***@posting.goo gle.com... Hi
This may be a really easy answer for you! I usually work with Oracle but have an Access project to work on.
I have a table of clients (name, addr1, addr2, addr3, pcode etc) which I need to use as a basis for a query result set which will include literal values for an accounting package.
The way I do this in Oracle is:
select tabname.col1,ta bname.col2,tabn ame.col3,tabnam e.col4,"28 Days From Receipt of Invoice","500", "4027 Unrestricted Income",tabname .col5,tabname.c ol6 from tabname where tabname.col7=sy sdate;
How do I put the literal values into an Access query?
Thanks for your help
Karen
On 6 Feb 2004 03:22:57 -0800, ka***********@d sl.pipex.com (Karen)
wrote:
Well, pretty much the same way you do in Oracle, if your in Queries >
View > SQL View
SELECT tabname.Col1, tabname.Col2, tabname.Col3, tabname.Col4, "28
Days
From Receipt of Invoice" AS Expr5, "500" AS Expr6, "4027 Unrestricted
Income" AS Expr7, tabname.Col5, tabname.Col6
FROM tabname
WHERE (((tabname.Col7 )=Date()));
if your in Queries > View > Design View
Expr6: "500" in the Field: row of the query grid will do.
Tom Hi
This may be a really easy answer for you! I usually work with Oracle but have an Access project to work on.
I have a table of clients (name, addr1, addr2, addr3, pcode etc) which I need to use as a basis for a query result set which will include literal values for an accounting package.
The way I do this in Oracle is:
select tabname.col1,ta bname.col2,tabn ame.col3,tabnam e.col4,"28 Days From Receipt of Invoice","500", "4027 Unrestricted Income",tabnam e.col5,tabname. col6 from tabname where tabname.col7=sy sdate;
How do I put the literal values into an Access query?
Thanks for your help
Karen This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Peter |
last post by:
Company thought DB2 will be better than Oracle.
The bottom line is when you do select, the system crash.
I think it may take 4-5 years for DB2 to reach Oracle standard.
Peter
|
by: Jon Ole Hedne |
last post by:
My Access 2002-application need to work with tables from both Oracle and
Access. To solve this, I want to run some querys on three views in Oracle
and import the results into temporary Access-tables.
I have tried this:
conn.Provider = "Microsoft.Jet.OLEDB.4.0"
conn.ConnectionString = "data source=" & datafil & ";Jet OLEDB:Database
Password="
conn.Open datafil
|
by: Alfonso Esteban Gonzalez Sencion |
last post by:
I am trying to use Access as a front end for extracting information from
an Oracle database. I started using linked tables but I am getting a
very curious behaviour.
When I consult the linked table in access, the total number of records
is OK but some records appear several times and some records do not
appear at all. It seems as if access or the ODBC drivers returns several
times the same record and skips some of the records, curiosly...
|
by: girlkordic |
last post by:
I have a linked table from an Oracle database (that contains HR
information for my company)in an Access database. The Oracle DB is
updated on a daily basis. I would like one of my tables in Access to
update automatically so when an employee is hired, my access table
reflects that new employee that was added to the Oracle DB.
I should say I have read-only access to the Oracle Db.
Would I have to run an update query or can this be...
|
by: s-dogg |
last post by:
If anyone has seen this before, please help. I work at a company that
has an Access application front end attached to tables in an Oracle 10g
backend. In order to run our application this way, the client
workstation needs to have the Oracle client with the ODBC driver
installed. When testing this with Oracle 9i, we found we had problems
performing a specific action if the Oracle driver version was anything
but a couple available from...
| |
by: AnandaSim |
last post by:
Hi All,
I've had Access 97, 2000 connections to the corporate Oracle database
for a few years now - but seldom use it. When I did use it years ago,
performance was not fast but the features were good enough. Now, the
version of Access is 2003 with Office SP1 applied, Windows XP against
Oracle 9.2. And attached tables are real slow - 5 mins to get to
datasheet view and data is incorrect - the same row is repeated several
times even in...
|
by: egoldthwait |
last post by:
I need to convert a 17mb access 2000 db to Oracle and house it in a
Citrix farm. The issue: we have never converted an Access Db to Oracle
but can probably use Oracle's Workbench to assist with this. Also - the
citrix folks do not want us to keep the FE in Access as the queries and
other activities consume a lot of power. The users will be in 3
different offices across the globe all accessing the 1 Oracle DB in
Citrix.
Does anyone have...
|
by: Paul |
last post by:
Anyone know where I can find some good resources to help us choose between
SQL and Oracle ( Progress Openedge as well ) . Any comments on what you
would choose ?? We are creating a new Warehouse Management System which wil
manage our very large inventory.
Anyway comments suggestions welcome
Thanks
Paul
|
by: jonceramic |
last post by:
Hi All,
I started developing in Access, and people took notice and so we're
starting to migrate into our corporate's bigger Oracle system.
I'll still be using my developed Access front ends, but will be
migrating my back ends to Oracle ODBC.
1. Does anyone have recommendations for books or web resources for
general rules/guidelines/help on doing this? I haven't found a good
|
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: 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: 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...
|
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: 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();...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |