Mask #Error In Query

Aug 1, 2006

I have a query and it works fine, it gives the progress of tasks related to the whole project.
The thing is that if the whole project is at 0% and you can't divide by 0 the query returns the value #Error.
Is there a way to mask it so that rather then returning #Error it shows up a blank filed or at least 0.

For example it is like this now
OutlineNumber |OutlineDescription |DeliverableDesc| Contribution
6.1| UST OTR Model V2| OTR Model v2| 100.00%
6.1.2| QA & Bug Fixing| OTR Model v2| 0.00%
7.1| STP | STP | #Error


And would like it to be this
OutlineNumber| OutlineDescription| DeliverableDesc| Contribution
6.1| UST OTR Model V2| OTR Model v2| 100.00%
6.1.2| QA & Bug Fixing| OTR Model v2| 0.00%
7.1| STP | STP |
//notice no #Error just blank space

Here is the query
Code:SELECT RawData.OutlineNumber, RawData.OutlineDescription, RawData.DeliverableDesc, FormatPercent(RawData.PercentComplete/subQuery.TotalProgress) AS ContributionFROM RawData, [SELECT DeliverableDesc, SUM(PercentComplete) AS TotalProgress FROM RawData GROUP BY DeliverableDesc]. AS subQueryWHERE ((RawData.DeliverableDesc)=(subQuery.DeliverableDe sc));

thanks for any help you might be able to give

Note I am presenting this query in a form to the user, so if it can't be done in query directly, is there a way I can code it on the form to remove the #Error values in teh query

View Replies


ADVERTISEMENT

Input Mask Error Messages

Sep 19, 2005

Hi All,

I've put an input mask into a table and would like to personalise the error message to give the user more information about how they should be entering the data correctly. I don't know where to start with this - can someone point me in the right direction??

Many Thanks,

Mary

View 1 Replies View Related

Forms :: Customizing Input Mask Violation Error Message?

Jan 5, 2014

I am trying to change the standard input mask violation error message to a personalised one. I have found this code:

Private Sub Form_Error(DataErr As Integer, Response As Integer)
Const INPUTMASK_VIOLATION = 2279
If DataErr = INPUTMASK_VIOLATION Then
MsgBox "There was an input mask violation in the field no!!"
Response = acDataErrContinue
End If
End Sub

However, i would like to change the message for a number of different text boxes. and i don't know how to isolate each one, and give each one a different message?

View 5 Replies View Related

Tables :: Appointment Date - Table Input Mask Error

Mar 28, 2015

I Have a field called appointment date and i have set the input mask as short date 00:00;0;_

the data type for the field is date/time but for some annoying reason this error message appear when I enter a date to the table... which for example is written like this 01/03/2003

I've attached the msg below ....

View 3 Replies View Related

Date Input Mask In Query?

Sep 1, 2012

We have employee dates of birth in our database. For a birthday gift exchange program, I want to generate a query that returns only the day and the month of the employee birthday (to placate those employees who wish not to disclose their exact age). I'm struggling with making a custom date input mask that will do this.

View 3 Replies View Related

Input Mask Data Not Working In Make Table Query

Jan 30, 2007

I have data recorded using an input mask,
"RF">L-0000;;*
to display data in the style: RFA-0001, RFA-0002 etc.

I have a make table query to join this field to another, to create a combo box look up.

Unfortunately, after I run the query, the only data from the input mask that gets imported is A0001, A0002 etc.

What have I done wrong? I guess the error must be in my specification for the input mask...

Any and all help gratefully received.

View 4 Replies View Related

Input Mask

Apr 26, 2005

HOW DO I DO THE FOLLOWING:

I want to use input mask in my email field i.e the @ must be present but i must be allowed to input values or numbers before and after the @. This did not worked because i have fixed the values: ????@????
thanks

View 2 Replies View Related

Input Mask

May 2, 2005

Dear All,

Is there any way that I can use an input mask to enter serial numbers of softwares.....

the data will be like this...

ABC8F-CHJ68-FH76F-GHF87-67JH5

Thanks in advance


Thanks

View 1 Replies View Related

Input Mask Maybe

Sep 15, 2005

What I have is field called contract number, and its entered as 09-0011, which is ok.

Now I like it to show up in a different field as 090011. I guess my first question can this be done. Or even better how would I do it?

Now your question is. Why don't you put it in correctly the first time, and the answer is we want the number to have a dash.

Any suggestions

Never can be easy for me.

View 3 Replies View Related

Input Mask

Jan 31, 2005

let's say i have a field, in which i store and identity card number. This number may consist up to 7 digits (of which 3 are mandatory) plus 1 letter (mandatory) at the end. Thus a valid identity card number may be the following: 1234567M, 123M

Eventually, since the field must always contain a letter, i set the data type to Text with field size of 8 ... and i set the inout mask as follows:

9999000L (since the first 4 digits are mandatory). With this input mask, if i have an ID Number of 123M, i have to input it as 0000123M.

Although, I would like to have the leading zeros, is it possible that during data entry time, i would simply type 123M, and i will get the zeros automatically, after the field loses the focus, rather than having to type them myself ?

Thank You

View 13 Replies View Related

Input Mask

Oct 18, 2005

Trying to set an input mask to Capitalize the first letter of a surname but also to do this for ie MacDonald or O'Brian? How can i do this?

View 1 Replies View Related

Input Mask

Jul 19, 2006

When you add a new column you can select different data types such as text, memo, currency,...

When I pick currency and typ in 12345 in the column and press tab it automatically puts the € sign behind 12345.....

View 1 Replies View Related

Input Mask Help

Sep 2, 2007

I am trying to create an input mask for a name field. I have Spanish names with two last names separated by a hyphen, a comma after the two last names, a space, and then the First Name a space and the Middle Name. The First Last Name needs to be in all capitals like the example. Example: NARANJO-Ramirez, Jose Luis

Can someone please help me format this mask. One trick is that there aren't always middle names. Since all parts of the name are different lenghts for everybody, I need to have an optional number of characters for each of the four parts of the name.

Thanks for your help.

View 2 Replies View Related

Input Mask

Apr 11, 2005

I have a text box on a form that holds a grid reference, (2 letters and 6 numbers). I have set the box up with an input mask, (>LL000000;0;_). Is there a way that when the user clicks in the box that the cursor will go to the start of the box. At present it goes wherever they click in the box. If they dont notice then the machine starts beeping at them, most annoying!

View 1 Replies View Related

Input Mask HELP!!!!

May 2, 2005

I have created an input mask but it depends what type of currency is..

If Me![Currency Counter] = "1" Then
Me![Serial No].InputMask = "LL00 000000"
Else
If Me![Currency Counter] = "2" Then
Me![Serial No].InputMask = "LL-00000000-L"
endif
endif

The problem is that if for example the currency counter = 2 the serial must be
AA-11111111-A but it is saving AA1111111A and i dont want it to save it like this.

Any help pls...

View 2 Replies View Related

Input Mask

May 12, 2006

I have a text box that has an Input Mask setup. The box is format to be
##-### (00-000;0;). My problem is, when the user clicks in the box it does not start at the beginning, it starts where ever the user clicks inside the box. Is there way to for when you click inside the box it automatically starts at the beginning?

View 2 Replies View Related

Input Mask

May 12, 2006

I have a text box that has an Input Mask setup. The box is format to be
##-### (00-000;0. My problem is, when the user clicks in the box it does not start at the beginning, it starts where ever the user clicks inside the box. Is there way to for when you click inside the box it automatically starts at the beginning?

View 1 Replies View Related

How To Add A Field To A Mask

Jul 13, 2015

How can I edit a mask adding a field I have added to a table?

View 4 Replies View Related

Input Mask For Importing

Feb 25, 2005

I have a table that I copy into daily from a shared Excel spreadsheet. I am trying to minimize the amount of touching up the data needs. What input mask should I use so that a field with four numbers...1234 (for example) will be converted to a nine-digit number with leading zeros (000001234) when the data is imported. I would like the nine-digit number to be saved.

Also, is there a way to have a date field import the date only & ignore any text?

View 2 Replies View Related

Input Mask / Format

May 19, 2005

Hiya everyone,
I'm try to do a database for items with part numbers.
& I want to be able to set the field to only accept data which has two letters at the begining, but any other characters after that (no fixed size).

ie.
part num1: pn047589sdf8m3
part num2: pn6583
part num3: pnfdgmj5973m
part num4: pn-fdgmj-5973m

Is this possible to do?

Cos all I can do at the moment, is to put a fixed number of characters.
ie. is the field size is 30characters
then I'd have to do this:
>LLCCCCCCCCCCCCCCCCCCCCCCCCCCCC

but this isn't good.

I just need something like:
>LL*

* mean any character for as many characters in length.

Adam
BIGmrC

View 2 Replies View Related

Input Mask For Zip Codes

May 23, 2005

I am working on a membership database that only has members from Canada and the United States. In the zipcode field, is it better to have two seaparate fields or is there an input mask that can handle both US and Canadian zip codes.

Thanks in advance.
24t42

View 2 Replies View Related

Input Mask Password Help

Jan 31, 2006

how can i only allow numbers to be entered when i make the input mask password

View 1 Replies View Related

Input Mask Problem

Jan 2, 2008

I have a number field that has three groups of 3 numbers: 123 456 789 or 12 345 678 (8 numbers). When there are only 8 numbers I need to have the first group of number contain 2 numbers and the other two groups to have the other six numbers. If my input mask filled from the right it would solve my problem if the mask was 900 000 000 (filled from the right) but I can't seem to figure this out. Your help is greatly appreciated.

Tyler

View 4 Replies View Related

Multiple Input Mask

Feb 25, 2008

Hi,

Can anyone tell me how I can format my access tables with multiple input masks under one field?

In my table I have formatted my telephone numbers so that they read (xxx) xxx-xxxx which suits our predominantly UK based business telephone numbers, however we also have a lot of Irish numbers which follow a different configuration e.g. (xxxxx) xxxx-xxxx - how can I add this second input mask so that both formats are recognised within the same column/ field?

Many thanks
RHorton

View 2 Replies View Related

Input Mask For Mobile Nos

Mar 25, 2005

Hi,

I am newbie and i need some help how to make an input mask for mobile no, which begins 79 or 99.

Thanks a lot
Andrew

View 5 Replies View Related

Change Password Mask

Jun 17, 2005

I want my text box to display a social security number like this: "*****6789". 5 asterisks and last four numerals displayed. I am familiar with the "Password" Input mask but I think it only allows the entire field to be masked. Can I make a custom mask like this?

View 1 Replies View Related







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