How to Calculate the Date and The Number
Please help me on how to do the below calculations.
080131 = it goes like this 8+1+3+1 = 13 is the answer
1000888 = it goes like this 1+8+8+8= 25 is the answer
This function will do what you seek:
Private Function GetSumOfDigits(varData As Variant) As Long
Dim lngPos As Long, lngSum As Long
lngSum = 0
If IsNull(varData) = False Then
For lngPos = 1 To Len(varData)
lngSum = lngSum + Val(Mid(varData, lngPos, 1))
GetSumOfDigits = lngSum
<M...Timer for Queries?
Does anyone know of a macro or add-on that I could use as a simple timer for
queries? I don't like to use the CPU time in the Task Manager because of
it's inaccuracy when not receiving full CPU usage.
THanks for any suggestions
Exactly what are you trying to accomplish? Are you trying to cause a query
to run automatically every so often? If so, you will need to use the timer
event on a form to do that.
Microsoft MVP (Access)
"cmungs" <firstname.lastname@example.org> wrote in message
news:88EC7019-045F-4EF...Positive and negative graph
How can I do so that my columns above zero be green and the ones below zero
In versions prior to 2007 you are use invert if negative.
Andy Pope, Microsoft MVP - Excel
"Construk" <Construk@discussions.microsoft.com> wrote in message
> How can I do so that my columns above zero be green and the ones below
> be...Undeliverable...554 5.7.1 URL/Phone Number Filter
When sending an email message, a user gets:
Alert message says:
A mail message was not sent due to a protocol error.
554 5.7.1 URL/Phone Number Filter - cyber.net.pk
Sender receives this notification:
The following recipient(s) could not be reached:
Receiver Name Here (E-mail) on 9/26/05 11:47 AM
Unable to deliver the message due to a communications failure
The MTS-ID of the original message is: c=US;a= ;p=xxxxxx;l=xxxxx-xxxxxxxxx
MSEXCH:IMS:xxxxx:xxxxx:xxxxx (xxxxx) 554 5.7.1 URL/Phone Number Filter -
The Word file mentions a person's email address with cyber.net.pk as ...Erratic results from query criteria
I am getting different results from running the same query with the same
selections. One moment it is all behaving as expected, the next it has gone
haywire. (I have done what appears to me to be EXACTLY what I have done in
another database, where it works perfectly every single time.)
In a query I have, amongst others, the following fields:
I want to be able to select any OR ALL of the relevant fields. I have the
Like "*"&[Type Category otherwise leave blank for ALL]&"*"
Like "*"&a...Does anyone have template for raffle tickets with numbers?
There is a tutorial here on consecutive numbering, you will have to use mail merge.
Ticket templates for Publisher
Mary Sauer MSFT MVP
"stenskell" <email@example.com> wrote in message
...Update Query ?
Is there a way to
1) Assign events when adding in data thru an update query
for example if you append a bunch of data into a table could you then do
some kind of an update query to say if there is an initial event and no
others tag this one Renewal 1 etc.. the only real data you have to go on
would be Customer A and the total amt .. the event, renewal event and the
delta would all need to be added in
Say Customer A comes in with an initial deal
then Customer A renews their deal
So, the data would look like when you're done.:
Year Custo...how to restore an accidentally deleted public folder
I need to restore a public folder on my Win2k3/Exch2k3 that was accidentally
deleted and cannot be restored from Deleted Items.
The server is also a Domain Controller.
Is my only option to rebuild the server on another machine using the same
name as the original server (and so requiring the recovery server to be
disconnected from the network) and to run a restore?
Or are there other options available to me to do this more quickly?
Exchange is backed up every night with normal backups being made every 2
weeks and differential backups every evening.
Before I embark on a lengthy server ...design query match anywhere?
In the design query I want to match the letters "ABC" anywhere in the
column 'description'. I could not get instr to work by using:
InStr(description, "ABC")) > 0
How else can I match ABC (upper and lowercase) to anywhere in my
Are you saying you put that InStr bit as a criteria under your Description
field in the query designer? Try putting
as the criteria instead.
Alternatively, you could add a computed field to the query
and then put >0 as the ...Error Number 57121
I have a problem with one computer that when a open one of my files on it
and run the macro in it it will come up with an error message that says
"Error Number 57121. Application-defined or Object-defined Error" though when
I open it on another computer it works fine. The Computer that I'm having
trouble with is using Office 2007 and my file was orginally made with Office
2003. The file was working on this computer until the begining of this week.
Any Answers would be greatly apprieciated
Have a look at the following site and see it...Numbered Discovery Requests
Could you advise of a way to number discovery requests sequentially, for
instance, Interrogatory No. 1, Request for Production No. 1, Request for
Admission No. 1. They need to be numbered individually as these requests are
normally intermingled throughout a document and not grouped together. But
each type of request needs to be sequentially numbered according to the type
of request it is. Is this explanation confusing? Maybe this will help:
Interrogatory No. 1
Request for Production No. 1
Interrogatory No. 2
Interrogatory No. 3
Request for Production No. 2
Request for Admi...Unexpected Error- Running Advance Find Query
I am getting a message that says "Unexpected Error An Error has occurred"
when I am running an advanced find query on two custom entities. It seems to
be when I have certain custom fields included in my view that the query
Any help on this would be greatly appreciated. Thanks so much.
Just wanted to add that I seem to get errors when there is a 0.00 amount in
> I am getting a message that says "Unexpected Error An Error has occurred"
> when I am running an advanced find query on two custom entities. It se...Keeping Deleted Items Folder Cleaned Up
I'm trying to add a rule that will delete any item over 2 years old in
my deleted items folder. The rules wizard only lets me select the
inbox. I delete stuff but don't clear deleted box in case I need it
Is there a way that I could send a deleted email to a temporary folder
and have a rule for it to send it to the deleted box and have my
deleted box emptied whenever I log out?
Thanks for your help,
...Safe to delete the default address lists?
I'd like to replace the default address lists (All Contacts, All Groups &
All Users) with customized address lists.
Is it safe to delete the default address lists or can they be hidden? The
existence of both the default & custom lists is confusing the users.
Yes, they can be deleted. You can use LDIFDE to export them first - in case
you need to recreate them the ldf dump will make it a snap.
MVP - Exchange
NEW blog location:
"David Agosta" &...pass through query
If a combobox is populated by a pass-through query, does it requery every
time the form is closed and reopened?
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
> If a combobox is populated by a pass-through query, does it requery every
> time the form is closed and reopened?
...add all contiguous numbers-column-row
I have a problem. I used the AutoSum function (Capital Sigma) to total
a column, so I don't have to keep changing the sum formula when I add
extra rows. My problem is that when I get to the third column, Autosum
adds the totals of the first two rows rather than the total of the
third column. How do I tell autosum to add vertically rather than
Copy the formula for the second total to the right by dragging the fill
handle (small solid square in lower right of active cell)
Bernard V Liengme
remove cap...Converting text to numbers
I'm running Excel 2000 ...
After opening a text file with the Text Import Wizard, I hav
successfully segregated a column of numbers into one column. Only on
problem, the NEGATIVE SIGN (for negative numbers in the text file) i
positioned in front of the number, rather than at the end. When th
file import is complete, the negative numbers show up as text, and ar
not included in the column totals.
I believe that this is controlled by the Region Settings in the Contro
Panel ... and if I changed the "Negative Number Format" option fro
"1-" to "-1" ... then I woul...a count field in a query?
I have a query in which I would like to create a field which
increments by 1 for each record selected, so if there are 10 records
selected by the query, this column would show numbers 1 to 10.
Ideally I would like to have some text in front of each number, say
invoice1, invoice2 etc.
From a previous posting I realise that this is frowned upon but it
would be the simplest solution for my problem!
How can I do this?
On Mon, 03 Dec 2007 08:54:00 +0000, Geoff Cox <<>> wrote:
>I have a query in which I would like to create a field which
>...Saving Username and Pass with Web Queries
I am pulling data from a website that requires you to provide a usernam
and password everytime you visit the site. Excel has cachin
capabilities, but everytime you close excel and try and open up th
spreadsheet again, it can't login.
What is the fix for this?
Message posted from http://www.ExcelForum.com
Message posted from http://www.ExcelForum.com/
...Birthday query for many children in one record
I have a database for the church, it has one main flat table only.
Each record for the parents have field for child1 name,
child1birthday, child2 name, child2birthday, child3 name,
child3birthday - up to 5 children.
I am having difficulty trying to get a report to list the birthdays of
the children like this
parent name, child 1 name, child 1 birthday month etc. so you get
something like this:-
Parent John Smith, child Mary Smith January 3
Parent Fred Jones, child Bert Jones March 4
Parent John Smith, child Jane Smith March 6
Parent Harry Brown, child Jane Brown March 6
Parent Bert Taylor,...Unresponsive Query Wizard
I have an Excel 2003 user who is using a spreadsheet that pulls data
from our SQL server.
When he opens it and refreshes the data it is fine, it pulls the current
data, but when he tries to edit the query, the Query Wizard does not
appear, he can see it on the task bar, but when he switches focus using
task manager everything is greyed out and nothing works.
I have tested the file from my computer and it is fine, which suggests a
problem with his machine or installation. Does anyone have any ideas?
> Hi there,
> I have an Excel 2003 user who...Deleting or editing Named Ranges
Once i have defined a named range, how do delete it, or
extend it to include more cells?
Thanks in advance
to extend use f2 to edit but better to
to define for self adjustment.
"Richard" <firstname.lastname@example.org> wrote in message
> Once i have defined a named range, how do delete it, or
> extend it to include more cells?
> Thanks in advance
C...Problem deleting "Unknown Album" from WMP V12
I have an "Unknown Album" showing with one "track" with no name, no length,
nothing. Can't edit, can't delete, can't find source location. What might
be causing this? What to look for in the way of corrupt file or the like?
Such 'ghost' files are a common issue with WMP 12. It's probably a bug,
and it could have been caused when a file in your library got deleted
while WMP wasn't running, although that might be just one of the
Restoring the media library will get rid of the file: In WMP, Tools -
Advanced - Restore...Another simple query
I have a table that contains first names and last names in different
fields. Is there any way to write a query that will give as a result
the first name and last name in the same field?
I hope this makes sense.
Thanks in advance!
[last_name_field] & ", " & [first_name_field] AS whole_name
Change the field and table names to whatever your actual fields and
On Apr 23, 9:47 am, Homer <peter.a.r...@googlemail.com> wrote:
> Dear all,
> I have a table that contains first names an...Exchange 2003 Queues
Does anyone know what NDR means? (An option is the
server's queue for deleting a message that's been stuck
"chimp98" <email@example.com> wrote in message
> Does anyone know what NDR means? (An option is the
> server's queue for deleting a message that's been stuck
Where does the report or log show up in???
>"chimp98" <firstname.lastname@example.org> wrote in message