Formatting Names On Report
May 23, 2006
This is probably a simple question, but I can't find the answer and can't seem to be able to format my question into a searchable format, so here goes.
I'm building a report that contains names; prefix, first, last, title. I would like to somehow link these so that instead of a bunch of spaces in between the data, the data is seperated by a single space. I.e. instead of
Mr.........Bob.............Smith............Director
It says:
Mr. Bob Smith, Director
Is this possible?
View Replies
ADVERTISEMENT
Jun 22, 2005
I have a report that i am trying to list in the header section, a listing of all the names for a particular field, if it is in my report. I will use these names to send the report to.
View 1 Replies
View Related
Jul 15, 2014
In my database, my "switchboard" consists of two listboxes: "Available Forms" and "Available Reports". The Available Forms listbox lists all the forms that can be accessed, and Available Forms listbox lists all the reports that can be accessed. I did this so that I wouldn't have to create buttons for each new form or report. They all are automatically listed in the listbox for the user to double-click on to open.
Since all my form and report names are not user-friendly (ie: fmComplicatedAndUglyName, rpComplicatedAndUglyReport) I want a way for the db admin to easily assign captions for each form that the average database user would find intuitive and easy to understand (ie: "Car Maintenance" instead of fmCarMaintenance). To do this, I built a table called tbDBObjectsCaptions consisting of these fields:
dbObject_ID (PK - Long Integer)
Caption (Text)
Next, I have an unbound form (fmDBObjectsCaptions) consisting of two subforms:
1) sbfDBObjectsCaptions_Forms, which lists all Forms with captions
2) sbfDBObjectsCaptions_Reports, which lists all Reports with captions.
Each subform's record source is tbDBObjectsCaptions with an Inner Join between the table and the MSysObjects table so that I can show only forms (Type field in MSysObjects = -32768) or only reports (Type field in MSysObjects = -32764). So, the record source looks like:
Code:
SELECT tbDBObjectsCaptions.dbObject_ID, tbDBObjectsCaptions.Caption
FROM tbDBObjectsCaptions INNER JOIN MSysObjects ON tbDBObjectsCaptions.dbObject_ID = MSysObjects.Id
WHERE (((MSysObjects.Type)=-32768));
(Except the Report's subform record source Where statement would have "-32764" instead of "-32768".)Each subform also consists of a "Caption" textbox and a combobox that lists all the forms or reports in MSysObjects. The Row Source for those comboboxes are:
Code:
SELECT MSysObjects.Id, MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Name) Not Like "*sbf*") AND ((MSysObjects.Type)=-32768));
(Except the Report's combobox row source Where statement would have "-32764" instead of "-32768".)My first day playing with fmDBObjectsCaptions went fine. Both subforms' comboboxes list either Reports or Forms and would easily let me choose a form or report. The subforms would record the same "Id" from the MSysObjects table into the tbDBObjectsCaptions table and each Caption I typed in was recorded into the tbDBObjectsCaptions table for each "Id" I chose. It worked just fine.
However, the next day, I noticed that the captions I assigned for forms/reports were now assigned to different forms and reports! In fact, the fmDBObjectsCaptions no longer shows any captioned reports as their Types have somehow changed from -32764 to -32768 and are therefore now displayed in the Forms subform.
Either the dbObject_ID is somehow mysteriously changing for each record in the tbDBObjectsCaptions table or the Id is somehow mysteriously changing for each record in the MSysObjects table. I don't know how or why but that's what's happening. So now, in the fmDBObjectsCaptions form, my Forms subform is displaying the wrong captions for the forms, and is also displaying records that were originally Reports (items that have captions but blank comboboxes were originally entered in the Reports subform).
I attached a copy of the database. Any different solution that allows for easy Admin'ing of displayed form/report names?
View 10 Replies
View Related
Apr 1, 2015
I want to populate a table with the database's reports.
And somehow be able to select a row and open a report in design view.
View 4 Replies
View Related
Mar 29, 2008
In my db the look up fields show up as numbers.
for example i have a look up field called "company" and i have two companies in it (Reddot & Thingz).
But on report they come up as 1 and 2 instead of their names.
The db is attached.
21343
If anyone knows the solution, please help me.
Thanks!
View 10 Replies
View Related
Nov 6, 2014
I have the following script which I use to modify all report settings, with an array so that I can easily list reports that I want to change the settings for, there could be 50+ reports.
I can use a string but I have to put str1 as string, str2 as string etc... whereas an array would be easier (if I knew how to do it).
Code:
Public Sub ModifyAllReportsProperties()
Dim obj As AccessObject, dbs As Object
Set dbs = Application.CurrentProject
Dim ReportName As String
[Code] ....
View 9 Replies
View Related
Dec 9, 2004
I have report that uses a query that summarizes the hours for a particular job. When I look at the query itself I get decimal numbers, such as 26.84, which is correct. But when I run the report the report rounds the numbers, instead of 26.84 I get 27. I have changed the format of the text box to General number, but it does not work. Actually the report does display some of the decimal numbers but not all of them. And all of the text boxes are the same. Hopefully someone will be able to help.
View 1 Replies
View Related
Feb 8, 2005
I have 2 questions with regards to report controls
1) is there anyway to stop calculated controls from rounding numbers off. We want 7.6 to show as 7 not 8
2) can you make negative numbers appear as zero instead of the number.
Any suggestions would be greatly appreciated.
View 3 Replies
View Related
May 10, 2005
I have a need to take two fields and make them appear as one with the first one bold and the second one nonbold.
The text needs to look like:
FOOD tomato
HOUSING STYLE log cabin
FISH cod
COLLEGE DEGREE BA - Biology
These are all from the same table, two fields (type, value)
To have a report look like this I figure I need to know the width of the first field and then position the second field near that position.
Any ideas.
Thanks
View 7 Replies
View Related
Jan 11, 2005
Hi,
Is it possible to parse, and format a textfield in a report on a line by line basis?
What I am trying to do is get a document to be processed into a printable format using reports. The text, and formatting information of each line, and any specific word details are stored in separate columns in the table. If, for example an entire line needs to be made Bold, I can get that done. What I would like to know is that if a word in a particular line needs to be formatted differently to the rest of the line, eg underlined, is there a way to do so?
For example, if I had the line as follows:
The quick brown fox jumps over the lazy dog.
I'd have the default, unformatted text as one field in the table, and the word, in this case quick, and it's formatting in another field of the table.
So rather than stating my question again, can it be done?
Thanks in advance,
Shaitan.
View 2 Replies
View Related
Aug 18, 2006
I need to print data on a pre-printed letter-sized piece of paper that will be cut horizontally into three identical 8.5" x 3.667" forms.
For the life of me, I cannot figure out how to format a report to get the data in the right spots. I've tried messing with the margins, height of the detail area, columns...everything I can think of. It seems I can get the data to print in the right spot on the top form but neither of the other forms and/or on the top two but not on the bottom at all.
There *must* be a way to do this.
View 3 Replies
View Related
Apr 23, 2015
I am having a problem with the formatting of a report. My boss would like for the report to show (grouped by employee name) a horizontal list like below and update itself.
Aircraft AS350 A119 AW139 AW189
Training Hours 300 50 25 160
OJT Completion 85% 100% 25% 45%
Each training class has a category in the table showing which model(s) the training is. For OJT I got it to count up the tasks and tasks completed in each model and calculate the percentage. I can easily get it to show vertical for each employee. I cannot get it to show like above. I tried using IIF statements to pull the hours and OJT by model aircraft. If I try to put it in the detail section it shows vertical and if I put it in the group of employee name it only returns one record (I assume its still trying to show vertical). The only way I could think of to get it to show properly was a crosstab query but its my understanding those are for archival purposes or for a snapshot and do not update. This report will need to update as things are entered.
View 1 Replies
View Related
Dec 3, 2014
A client wants to convert a report I designed for him, to a word document so he can edit it.
The report's Report.Orientation Property is set to 1 - Right-to-Left
Relevant TextBox.ReadingOrder Properties set to 2 - Right-to-Left,
and relevant TextBox.TextAlign Properties are set to 3 - Right
When exported to RTF, the document is LTR and text alignment is to the left (even though the page actual layout is seems RTL, just like the report).
Is there a way to enforce RTL layout in the exported Word file?
I am using Acc2010.
Edit: Iv'e added a sample word file. You can see it looks RTL, but is actually LTR. Set it as RTL - and it gets all disordered. Now multiply this by 47 pages...
View 4 Replies
View Related
Jul 30, 2014
I'm working on a form that needs to look similar if not the same as the report that contains the same information. When building the reports I was able to sort the data so a value that applies to many entries appears only once at the start of the corresponding group of entries.
How can I have this effect in a form?
View 14 Replies
View Related
Sep 20, 2012
I have set a conditional format for a report...very basic, Now()+7 and set it to format to turn red, but it will not turn red unless I click on it.
View 3 Replies
View Related
Dec 11, 2012
I am struggling to format a field on a report.
I believe it is because special charachters are in the text string
I want to highlight the field if it contains the following text
Stage 6: Won and Deploy (shipping)
Regretably, I believe Access see this as code.
I suspect I need to encapsulate it some way, but nothing seems to be working
What am I missing?? How can I force Access to see it as a text string??
View 1 Replies
View Related
Mar 26, 2015
In my Access 2010 report, I am attempting to perform conditional formatting of one field based on the difference between two fields. In particular, one field is "Time Scheduled" and the other field is "Time In". If the "Time In" is equal to or greater than 60 minutes of "Time Scheduled", I would like to format it to be red font. If it is less, I would like to format it to be green font.how I can conditionally format to do this?
View 12 Replies
View Related
Mar 20, 2014
I am trying to add conditional formatting to a several fields in a report. So far i can use the contional formatting to set a field called [colour] to set that field to red and bold. But i believe I need to use an Expression for all fields, so I can make all fields that = red go red. I have used the the expression:
[colour] = "red"
but nothing happens.
Expression Is [Subtotal]+[Freight] > 50
View 4 Replies
View Related
Aug 21, 2013
What I want to be able to do is have a button next to every client entry which the user can click. Once the button is clicked, I want the "person name" box in the report to be formatted to have a yellow background.The purpose of doing this is so after a couple of days when we come back to the report, we can easily see by the yellow background which people we have to follow up with.
I don't think conditional formatting will work because I have so many different "person names" in the report that it would go above the 3 rule limit, only solution in VBA.The button I created is called "Format", and this is the VBA code I have tried:
Private Sub Format_Click ()
Me.Person_Name.BackColor = vbYellow
End Sub
View 2 Replies
View Related
Jul 3, 2013
I have a text box on a report from the Control Source CSCS Expiry Date. The format in the table and query and report is Short Date. The Text Format is Plain Text.
I have named the text box txtCSCSExpiryDate. I would like to make the background red when the date is 01/04/2013. I have ensured the text box back style is normal.
I am using expression
[txtCSCSExpiryDate]=#01/04/2013#
And in case it was the Control Source:
[CSCS Expiry Date]=#01/04/2013#
I also tried:
[CSCS Expiry Date]<Date()
[txtCSCSExpiryDate]<Date()
I applied the formatting each time, tried closing and re-opening the database. Changed the background format colour to green instead of red and even restarted my computer and it just stays exactly the same.
I've just noticed something else. I have a screen only button on my report header with
DoCmd.OpenReport "All_CSCSExpiry_Rpt" acViewPreview
Which has also stopped working. I get an error:
The expression On Click you entered as the event property setting produced the following error: A problem occurred while Employee Details was communicating with the OLE server or ActiveX Control.
Is this linked to my formatting not working?
I've just checked and on my 5 reports all of the print buttons are giving me this error! (I added the button as they are part of a navigation form menu which only shows report view, I am editing in the original report design view though.) They were working yesterday! Is it because I compacted and repaired the database?
View 4 Replies
View Related
Sep 25, 2014
I am working on a report and I am having issues changing the coloring of the rows in the report. If possible, I would like the first column to be completely white with no alternating color because there is only data in one cell at the top of each grouping. So the column with "Aggregates", "Attachments", etc would have no alternating color rows below them.
In addition to this, I am having difficulty changing the alternating row color for the other columns. I'd like to use colors with more contrast. I have tried changing the color in both design and layout view, but the options for formatting row color is also greyed out, and not available for me to use. In other words, the alternate row color button on the home tab is unclickable, for lack of a better word.
View 2 Replies
View Related
Feb 22, 2015
I am playing with a report. Crosstab report works, but I would like to print check mark if value is "X". Other values are "A" and "E" and they need to remain as they are.
View 4 Replies
View Related
Jul 25, 2014
I am having problem on formatting text on a report based on a Yes/No field using Conditional Rules Manager in Access 2010. When adding a rule [field name] = Yes the font color does not change. I have tried setting the expression to [field name] = True and still does not change the color. Adding a Yes or True in query works OK.
View 12 Replies
View Related
May 28, 2015
I have a main report with 5 sub reports. There is a detail page for each company and a totals page at the end. The record source for each sub report is a Union query (combines the detailed information with the total information.
One of the sub reports displays currency amounts. The detailed reports display the currency correctly: $26,001 (no cents). The totals sub report does not display the currency formatting: 468934
When I run just the totals query the amounts display correctly ($468,934) by using the CCUR(TotalAmount) variable type conversion. The VarType for the amount field in the totals query is 5 (double precision).
When I combine the detail query and totals query into a Union query the detail amounts display correctly but the total amount is missing the formatting.
Here is the union query.
SELECT TblCompany.TblCompanykey, FormatCurrency(ProviderCostsRetrieval([TblCompanykey],1),0) AS TotalCost
FROM TblCompany
ORDER BY TblCompany.TblCompanykey
UNION ALL SELECT 9999 AS TblCompanykey, CCur(Sum(([QryRptProviderCostsDuringPeriod.TotalCost]))) AS TotalCost
FROM QryRptProviderCostsDuringPeriod
GROUP BY 9999;
View 2 Replies
View Related
Jun 13, 2014
I'm having trouble with field borders in a report I made. The image at the URL below shows what I've made and what I want (used Excel to make a simple version of my report).Using Access 2007
URL----> s13.postimg.org/wj4ghgz6f/2014_06_13_1045.png
View 6 Replies
View Related
Jul 10, 2015
I would like to change the text formatting (color, italics, bold etc) of the contents of a control based on a boolean value in the underlying datasource of the report.
For instance, I have a report that generates a "Proforma Invoice" i would like to ability italicize the prices of certain items based based on a boolean value (EstimatedPrice) in the underlying datasource.
View 2 Replies
View Related