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
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??
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?
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
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.
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
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 ?
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.
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!
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.
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?
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?
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?
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.
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.
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.
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?
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?