Turning A Cell Red In A Query?

Sep 28, 2011

I would like to turn a cell red in a query - is this possible or can this only be done in a form or report. I have created a table with medical information and want the cell to turn red when blood pressure entry is greater than 140. Not sure what and where formula should be entered.

View Replies


ADVERTISEMENT

Turning Query Results Into String...

Jun 23, 2005

Hello, I have a query that returns a list of courses undertaken by certain employees. They are in the format NPTC CS 30; NPTC CS 31; NPTC 33; NPTC FTC 38; NPTC FTC 40 etc...

Anyway what I need to do with this is convert these results to a string and manipulate them in such a way that they can be displayed in a text box on the back of an ID card in the following format:

NPTC CS 30, 31, 33, NPTC FTC 38, 40... etc.

Because there is not enough room on the back of the ID card to use a subform to just display them in a list...

View 3 Replies View Related

Queries :: Turning Excel Formula To Criteria In A Query

Jan 7, 2015

=TEXT(TRIM(MID($A2,5,2) &" "&LEFT($A2,3)&" "&MID($A2,8,10)&" "&RIGHT($A2,2))+0,"dd/mm/yyyy hh:mm:ss ")

Is it possible to replicate the above formula from Excel into criteria in an Access Query.

Assume the cell reference $A2 is a text field which has customized date info in it but is not a recognized date format.

View 7 Replies View Related

Export Query To Specific Cell

Nov 14, 2005

Hiya,

At present I am running a database which opens several queries and then I have to manually paste this informaiton into a spreadsheet.

What I want to know is how do i go about pasting this information into a specific spreadsheet and then into the correct cell.

I have had a look around and have not been able to find what I am looking for.

Cheers

Carl :confused:

View 1 Replies View Related

Putting The Same Text Into Every Cell In A Query Column

Jul 22, 2005

Putting the same text into every cell in a query column

Hi All,

I sometimes have to mark every record in a query with the same text in a field, when the field is either empty or contains whatever text.

At present I do this by copying the text, and then pasting it (ctrl-v cursor-down, a thousand times) into every cell in a column.

How can I do this in a more efficient way?

Thanks for your help.

Adrian

View 8 Replies View Related

Query Maximum Number In Hour Per Day Every Cell ID

Jul 13, 2015

I need to know about "Need to query result from access2007 find only "one maximum number" in hour per day every cell ID"

How I use sql command?

See my file at ...

View 5 Replies View Related

Add Value To Cell According To Another Cell In Same Record

Nov 21, 2006

i have a table of articles. A field in the table is ArticleSubject

the ArticleID is made up of 3 letters then 3 numbers. i want the 3 letters to be something according to the subject
for example i want the first 3 letters of the ArticleID to be MAT*** (* is a number) if the subject is Maths
or ENG*** if the subject is English

the subject is picked from a listbox in the same record

how would i do this in a table . i am reluctant to use append or update queries.
but will do so if its the only way.

View 4 Replies View Related

Modules & VBA :: Concatenate Data In One Cell In A Report / Query

Mar 27, 2014

Watch the below tables.

I have a large ACCESS list as per the left one and I would like to make it as per right.

The problem is that I want to concatenate the "invoices" in one record separated with a coma , .

This is the only way I can compact the long list into a short one and make it comprehensible.

The invoices , in one cell, very rarely are more than 4 or 5 items.

So room for 6 is just perfect.

View 8 Replies View Related

Modules & VBA :: Passing Excel Cell Date To Access Query

May 1, 2014

I'm having a rough time trying to figure out how to pass a date to an SQL statement that Excel VBA macro will run. The date is in a cell (A1) formatted as 'm/d/yyyy'. Let's say it's 2/1/2014. I want to run an SQL statement that retrieves data from a table where a field is greater than 'A1'. The table field is a date/time field and has values formatted as 'mm/dd/yyyy'.

I've tried various syntax on the Where but cannot get it to work.
sd = Range("A1")
SELECT [tn].[Date Submitted]
FROM[tn]
WHERE tn.[Date Submitted] > """ & sd & """

This results in the following where clause that does not work.
WHERE tn.[Date Submitted] > "2/1/2014"

View 4 Replies View Related

Queries :: Change Background Color Of A Query Cell If Certain Criteria Met?

Aug 14, 2015

Is it possible to run a query and have the background color of the query field be highlighted if a certain criteria is met?

I'd like to use the expresion builder if possible.

For example if the values in field A and field B do not match, then field C should be a yellow background.

If this is possible, how is it done?

View 1 Replies View Related

Queries :: Concatenate Field Data Into One Cell In Query According To Linked Table ID?

Mar 8, 2014

i need to Concatenate a fields data into one cell in a query according to linked table ID....

View 3 Replies View Related

Turning A Db Into A Webpage.

Nov 3, 2006

Hi,

Is there a good developer tool for turning an access db into a webpage?

Or should I go about it in a completely different way?

I want it to work just as it does, but I would like to have it on the www.

Fuga.

View 11 Replies View Related

Turning Off Spell Check?

Aug 25, 2006

We need to enter the string INCL as a data value in one of our tables. When we try to exit the field, Access keeps changing it to INCLUDE. This occurs whether the value is entered via a form or directly in the table. I assume it is doing some type of autocorrect based on th spelling. There is no VBA code associated with this field.

Is there some way to turn this off?

View 2 Replies View Related

Turning A String Into Date

Sep 30, 2011

I am doing a project which currently requires me to input a new file we just got. However, the dates on all of them, as in the field containing the dates, displays something like 20030608 instead of June 8, 2003. I was thinking I could just run the file through a looped vb array to go through the information, reformat it, and then dump it into a new column.

View 2 Replies View Related

Turning The Records In A Table Sideways

Mar 27, 2007

I have a table with data structured like this:

Emp#STOT
--------------------
301741421540
301801882518
3020024000
30223227166

I want to create a query that takes that data and does this:


Emp#STOT
--------------------
3017414210
301740540
3018018820
301800518
3020024000
3020000
3022322710
30223066

Is that even possible? How do I get started?

View 6 Replies View Related

Turning Current Fields Into Autonumber

Jun 26, 2007

Hi all.

I have been tasked with replacing an external database in house and obviously the external database has multilpe tables joined by various id fields. I'm assuming when they created the db they were assigned autonumber qualities etc to create unique numbers.

However, I can't replicate that in mine. I have the external references for existing data fine. But ho do I now create a new record with a unique number in the existing field.

I tried setting it to primary key and/or no duplicates etc but it's expecting me to enter a number.

I imagine I've got to set some kind of loop to count from one and matech it and then when it finds a number not currently in use it'll stop and use that but how to do that........

Cheers for any help.

View 2 Replies View Related

Turning Data Entry Off Through Code

Feb 23, 2006

Hi,

I have two main forms which are essentially the same apart from some command buttons, one form to enter data, one form to view data.

These forms also contain about 8 subforms, in Data Entry mode (for the data entry form, funnily enough).

Problem is, obviously when I open my form to view records, the subforms don't update as I flick through, due to them being in data entry.

What's the easiest way to prevent this problem? Obviously I'll need to turn data entry off, but was wondering whether there's a more elegant solution than either creating 8 duplicate subforms with data entry turned off, or using about 50 lines of code to turn Data Entry off/on every time.

Thanks,

Toby

View 1 Replies View Related

Modules & VBA :: Filter On Subform Not Turning Off

Feb 2, 2015

I'm filtering a sub form in datasheet using an option group frame, and the on click does exactly what I want it to do.However, Once I'm done filtering, I can either set the filter to all ...

Code:

Case 1
Forms!frmmain!frmtoplinelist.form.FilterOn= False
Or click a Button "Remove Filter"

Code:

Private Sub btnClear_Click()
Me.frmTopLineList.Form.FilterOn = False
End Sub

(I've tried both references to the subform too... "Me." and "forms!etc. However, the subform filter isn't switching off.

View 4 Replies View Related

Forms :: Turning The Month Into A Number Using Vba?

May 7, 2013

im doing my ict unit 7 edexcel ict exam atm and as one of the tasks we have been asked to generate the testid. the test id consits the year a underscore and then the number of the month so for example if a test happened this year and this month the test id should be 2013_5. i can get the year and the underscore into the code to generate the testid but im not sure how to get the month to change to a number so for example if i select may from a drop down the code needs to take that and generate it into a number.

View 6 Replies View Related

Queries :: Turning 2 Fields Of Data Into 1

Jun 17, 2014

I have a table in a database where the telephone numbers are in two separate fields, i.e. [123] (which is the areacode) and [456-7899]. Is there a way to take the two fields in this table and put combine these two numbers into one field so the new field will be in this format.... [123-456-7899]?

View 9 Replies View Related

Queries :: Turning Rows Into Columns?

Jan 20, 2015

I have a file structured as listed below. I need to pivot Patient Id, Patient Name, Send Reason, Provider Name and Visit Number into columns and then insert the values into the corresponding columns.

My data set contains about 1,000 rows, so I cannot simply paste special in Excel.

Patient ID 111111
Patient Name Doe, Jane
Send Reason Cannot resolve provider
Provider Name Doe, John
Visit Number ABCD#F1234567

I have tried Pivot and Transform, neither of which seems to work.

View 13 Replies View Related

Lines Turning Blue When Printing

Sep 1, 2011

I have my lines set up as text black but when I print they turn to a dark blue.

View 1 Replies View Related

Forms :: How To Keep Subform Filter Property From Turning On

Dec 23, 2013

This doesn't happen on all my other Frm/subfrms that I have. Only this one and I can't figure out why.

I have a main form with a datasheet subform and a detail subform on it. The detail subform works fine until I filter on the datasheet.

Both forms use the same view.

But, when I filter on the datasheet form, the filter on the bottom of the 2nd subform turns on and I can't unfilter it. I can't figure out what it's trying to filter. If I can figure out how this is happening, I can prevent it and then the subform will just reflect the record selected from the datasheet. This doesn't happen with any other datasheet/detail form that I have.

View 1 Replies View Related

Tables :: Time Field Keeps Turning Into Calendar

Jun 9, 2014

We are setting up a table and are trying to get a field to be a "time" field. I've changed the field to "date/time" and have chosen 'short time' in the background but when I open the table it keeps giving me a calendar to choose from then turns it into a time.

View 1 Replies View Related

Modules & VBA :: Turning Off (specific) Error Messages

Dec 2, 2014

I have a query that I run from VBA which basically resets a field on every row, where it is set, back to it's original default value - this works!.However I get 2 pop up windows, 1 of which is no use and the other is worth keeping.

The first Window says "you are about to run an update query that will modify data in your table" - I want to suppress this one.

The 2nd more useful one tells me I'm about to update (x) rows. I want to keep this.

Obviously if I put DoCmd.SetWarnings False in my code all warnings are switched off so how, if at all possible, do I only display the 2nd more useful message?I presume I have to trap the error, but how do I know what the error number (??) is for the first message?

View 2 Replies View Related

Tables :: Turning Off Rounding Function In Calculated Fields

Jan 22, 2013

Is there anyway to turn off the rounding function in calculated fields - I need to divide a currency amount by a whole number to calculate the number of full coin bags that will be needed (bags contain different totals according to the coin value) - a whole number.

Then the result is used to calculate how much loose coin will remain.

But regardless of the field type and/or the format, the number rounds when I reduce the decimal places to zero. I need the result to be the whole number and to calculate as the whole number.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved