Hi guys, First post here, so please be gentle.
I'm currently writing an Access 2000 Database, and as part of that I need some reports to make use of the information contained in the db.
The reports are largely written and although i'm not a DB expert, i've so far managed to plod through teaching myself what I need, i've now however hit a bump in the road.
I need to insert a field into some text in a report, and I cannot seem to get it to work without Syntax errors.
The Text is:
"The letter has been passed to [Caseworker] who will note its contents. No formal reply appears to be necessary to this letter."
The [Caseworker] part is the field I need to be inserted, i've tried using the expression builder, and simply inserting the field into text. Basically i'm stuck.
I have searched the internet, and particularly this site, to no avail.
Any help would be most appreciated.
Thanks
Martin
3 2153 ADezii 8,834
Recognized Expert Expert
Hi guys, First post here, so please be gentle.
I'm currently writing an Access 2000 Database, and as part of that I need some reports to make use of the information contained in the db.
The reports are largely written and although i'm not a DB expert, i've so far managed to plod through teaching myself what I need, i've now however hit a bump in the road.
I need to insert a field into some text in a report, and I cannot seem to get it to work without Syntax errors.
The Text is:
"The letter has been passed to [Caseworker] who will note its contents. No formal reply appears to be necessary to this letter."
The [Caseworker] part is the field I need to be inserted, i've tried using the expression builder, and simply inserting the field into text. Basically i'm stuck.
I have searched the internet, and particularly this site, to no avail.
Any help would be most appreciated.
Thanks
Martin
In the Format() Event, in the Detail Section of your Report, place code similar to this, just make the necessary substitution for txtInsert: - Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
-
Me![txtInsert] = "The letter has been passed to " & Me![CaseWorker] & " who will note its contents. " _
-
& "No formal reply appears to be necessary to this letter."
-
-
End Sub
Hi again.
Firstly thank you for the response to my question.
However I think maybe I mislead you into thinking i was more adept at report writing or Access than I actually am.
From what you wrote, I understood that I needed to enter this into VB (under "view code" function in Access).
I did this, and it brought several errors.
All I wanted to do was insert a field from my database, into a string of fixed text.
So that it read exactly the same, but with the change to the [caseworker]
maybe i'm being thick though
Thanks again
It depends on how the tables have been designed.
you will have contact details of the person you are writing to and a case worker assigned to that person. (whether this is in another table and you are using a number to link them) If you link those two bits of information using a query, use the query as a source for the report and within a text box use: - ="TEXT" & [caseworder/fieldname] & "Continue text"
I hope this makes sence
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Random Person |
last post by:
Does anyone know how to use VBA to relink tables between two MS Access
databases? We have two databases, one with VBA code and the other with
data tables. The tables are referenced by linked tables in the database
where the code resides. If we move the database with the data tables to
a new directory, the links are no longer valid.
I tried to update the links by changing the Connect property and refreshing:
Set td = db.TableDefs(0)...
|
by: doomx |
last post by:
I'm using SQL scripts to create and alter tables in my DB
I want to know if it's possible to fill the description(like in the
Create table UI) using these scripts.
EX:
CREATE TABLE(
Pk_myPrimaryKey INTEGER CONSTRAINT pk PRIMARY KEY DESCRIPTION 'This
is the primary key of the table',
|
by: Andrew Banks |
last post by:
I'm running the following code in a C#.NET page and it doesn't enter the
values into the DB. I'm certain the problem is to do with the txtBirth
field. It allows users to enter a DOB as dd/mm/yyyy and I think it's the
slashes(/) that are causing the problem. If I don't enter a DOB in this
field then all the data enters into the database without a problem.
Any ideas?
SQL Server 2000, VS.NET, C#
|
by: hfk0 |
last post by:
Hi,
I'm new to ASP.net, SQL Server and visual studio.net, and I'm having
problem inserting and storing data from a web form to a SQL database.
I created a simple ASP.NET web form, a simple SQL database, a database
connection (using the SQlDataSource Web Control from the Toolbox), and
created the following stored procedure in Visual Studio.Net 2005:
|
by: clinttoris |
last post by:
Hello,
If someone could help me it would be appreciated as I am not having
much luck.
I'm struggling with my asp code and have some questions relating to asp
and oracle database.
First question. I have a web survey that I am working on and have
successfully dynamically taken the info from a database, displayed it
on the screen and then taken the users answers and inserted them into a
| |
by: alexandre.brisebois |
last post by:
Hi, I am using access 2003, I would like to know if there is an option
to reorganize the tables in a maner that is readable, as we can do in
sql sever 2000 or 2005.
I have been given a database to look a and I am loosing tremendious
amounts of time trying to organize it so that I could view it.
Regards,
Alexandre Brisebois
|
by: etuncer |
last post by:
Hello All,
I have Access 2003, and am trying to build a database for my small
company. I want to be able to create a word document based on the data
entered through a form. the real question is this: can Access create
the document and place it as an OLE object to the relevant table?
Any help is greatly appreciated.
Ricky
|
by: Ajm113 |
last post by:
Ok, when I was new to this I had this problem and I bet a lot of other people did when they where new to PHP and Mysql. So this mite be your question;
"Ok, no errors or warnings in mysql and php so why isn't the script entering info into my row?".
Well to awnser your question most servers that you pay for monthly or own will have a anti mysql injection attack. So it will not allow the injection to enter in your database for your protection...
|
by: ashes |
last post by:
Hi,
I am creating an ecommerce website using Microsoft Visual Studio, VB.Net and MS Access 2003. I am new to VB.Net
When someone wants to register on the website, they fill out a form and the contents of the form is inserted into the MS Access database.
The Customer table in the database already has 30 records (with CustomerIDs 1 - 30) in it (from when the database was first created). The CustomerID field in the database is an...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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: 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.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |