473,587 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create report in MS-ACCESS

Hello,

I'm new in creating report in Ms-Access and I have some questions.

I want to display a text Hong Kong Dollars when a field in my database
is = "HKD" and display a text Patacas when this field is
= "MOP".

Is there possible?

I'm using Visual Basic 6 to "access" the database. Input data, read
data from the db, print the report that is made inside the
MS-ACCESS.

Can someone help me?

Cheers!

Claudia

Nov 13 '05 #1
1 1579
On 27 Jul 2005 21:51:17 -0700, "cd********@yah oo.co.uk"
<cd********@yah oo.co.uk> wrote:

One popular way to do that is to have a table in the database with
currencies:
ID, Abbreviation, Description
1, HKD, Hong Kong Dollars
2, USD, United States Dollars
etc.
Then you can join with that table and pick up the Description.

A quick-n-dirty version may work if you have just a few translations.
You could write an IIF statement in your query like this (assuming
your currency abbreviation field is called Access
Database Autopilot):
select field1, field2, iif(CurrAbbrev= "HKD", "Hong Kong Dollars",
CurAbbrev) from myTable

So in both cases the work is done in the report's underlying query,
not in the report itself.

-Tom.

Hello,

I'm new in creating report in Ms-Access and I have some questions.

I want to display a text Hong Kong Dollars when a field in my database
is = "HKD" and display a text Patacas when this field is
= "MOP".

Is there possible?

I'm using Visual Basic 6 to "access" the database. Input data, read
data from the db, print the report that is made inside the
MS-ACCESS.

Can someone help me?

Cheers!

Claudia


Nov 13 '05 #2

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

Similar topics

0
1690
by: Stanley | last post by:
I have a created a report by using the Crystal Report 4.6 which is bundled with VB6. The report is connected to MS SQL Server and has 20+ fields inserted into the designer. The program stop responding after clicking the preview tab. I have done some research and found that there is a problem in CR 4.6 when selecting more than 11 fields from...
7
4003
by: Phin | last post by:
I need your HELP! I've seen all the posts on using Crystal Reports within vs.net (vb.net) and changing a SQL query at runtime. When I tried to pass in a dataset into the crystal report at runtime, the report still showed the results from the default query (from within the Crystal Report). Then I tried the XSD solution where you define a...
8
7560
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I want them to do as little as possible when they run their reports. I have a crosstab query that displays usage of items for each month. It looks...
1
4117
by: gus kernot | last post by:
I have copied code from the MS Knowledge Base that produces the above report. I understand the code and am pretty comfortable working with recordsets. I used the same report structure successfully with Access2 some years ago. The only real changes I have made to the sample were made to accommodate a larger number of columns and to display...
0
1762
by: Chris | last post by:
I finally got my report to be recongized, that login issue is terrible. Using VS.NET 2003, created report inside of it. Now when I attempt to display the report is blank (missing data, though I can see the viewer, report fields, etc.) I've tried setting the rpt.SetDataSource(dstConcernInfo) in the reports VB code behind and my viewer...
1
4153
by: PlumeProg | last post by:
Hello, I can't find a way to bind a dataset at runtime as a source for my report source. I looked into msdn and found some sample : ms- help://MS.VSCC/MS.MSDNVS/crystlmn/html/crtskaccessingsecure databases.htm ' Declare require variables. Dim logOnInfo As New TableLogOnInfo()
2
5684
by: Dave McKie | last post by:
Hi all, I am trying to do my first Crystal Report with the bundled version of VB.Net version 2003. I am familiar with creating reports in Crystal version 9...so I though it would be a piece of cake. I cannot get any data to display with the report. I am using * a form that host's the CrystalReportViewer, * a ReportDocument that points...
9
9402
by: itmags | last post by:
I need to create a couple of reports, invoices, credit reports, etc... My question is: How/what is the best way to go about this using VB2005 / SQL Server 2000 Crystal Reports? MS Reporting? Home brew using print document? (Program to be distributed thoughout this office and possibly to a few other organizations that have expressed an...
11
1962
by: Ryan | last post by:
I am writing a VB (2005) program that will allow the user to fill out and print a form. The form input is stored in a database (SQL 2005) to be retrieved/viewed/printed later. The form is originally a Word Document, I also have this form as a PDF. Appearance and quality is critical for this form.. so what I thought I'd do is convert the...
0
2152
by: eolmos | last post by:
Hello everyone, I am currently working on a project that requires a webform in asp.net using C# as the code behind. The page must allow the user to create a report in excel. This report must also generate a chart based on the input dataset. (By the way, the component must be free) So far, I have tried a lot of components which are really good but...
0
7849
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...
1
7973
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...
0
8220
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...
0
6626
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...
0
5394
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...
0
3844
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...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
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
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.