substracting in query
I have a calculated field in my query where one sum is substracted from
another.However when there is nothing in the second field, the result is
also nothing, while i want to preserve the first value
my expression in the query is : Diff: [imported]-[exported]
if i have 100 items imported and nothing exported, the result is nothing,
while i want to be 100
How could i achieve that ?
Message posted via AccessMonster.com
peljo via AccessMonster.com wrote:
> I have a calculated field in my query where one sum is...Random
How to get random numbers random(0xff) ?
int RandomNumber = (rand() * 0xff) / RAND_MAX;
"]GHO[" <firstname.lastname@example.org> skrev i en meddelelse
> How to get random numbers random(0xff) ?
rnd() & 0xff;
On Tue, 11 Nov 2003 04:07:13 -0800, "]GHO[" <email@example.com> wrote:
>How to get random numbers random(0xff) ?
...how would you calculate the number of hits to your website
can some one tell to me the answer of this question
On a website, how would you calculate the number of hits to your
...Random Numbers not Random
When I create random numbers for an application with the following code, they
do not appear to be truely random.
Me.RandomNumber = Int(9 * Rnd + 1) ' Random Number 1-9
If I have two users setting side by side, they frequently get the same
results when they start up
Am I missing somthing?
Any help would be appreciated
Have you tried a
statement just before the RND?
That should do it.
Microsoft Access MVP
"Find a job tha...Largest number in range
I am looking for a formula that will select the largest number in a range
and make that number "bold." Is there a formula that will do this?
Thanks in advance for any help.
Not a formula (formulas return values--they don't change formatting).
But you could use Format|conditional formatting.
If your range is B3:G9, then select that range and with B3 the activecell, then
click on Format|conditional formatting
Condition 1: Formula is
and use this as the formula: =B3=MAX($B$3:$G$9)
Excel will adjust the formula for all the cells in the selected area.
(Don't...Resequence figure numbers
Operating System: Mac OS X 10.6 (Snow Leopard)
Using automated figure numbers in captions - have deleted a few, and the remaining ones do not automatically renumber. <br><br>How do I force the figure numbers to resequence? In Word 2007 on a Windows computer, it's just the F9 key. What works for Word 2008 on the Mac?
Actually, it's F9 in Mac Word as well � or at least it *was* until Apple
decided to expropriate that keystroke for Expose :-) You have several
options available to you:
1- In System Preferences> Expose & Spaces...Numbers matchup
I have a column of Account numbers in one worksheet. In another worksheet i
have a column with account numbers and a column with SSN. I need a formula
that will take the account number in the first worksheet and find it's match
in the second worksheet and plug in the SSN on that same row as the Account
Is this possible and how would be the best way to do this
Have a look in HELP index for VLOOKUP
"Paul McGuire" <firstname.lastname@example.org> wrote in message
news:%2393selkAFHA.2932@TK2MSFTNGP10.phx.gbl....Add numbers accross columns after stripping away text
I have the following data in a spreadsheet:
A1 B1 C1 D1 E1 F1
4.5f 6f 3.5f 3f 7.25f
I need to be able to add the numbers together to give me 24.25, i.e. strip
the fs away. The numbers will always be less than 10 and the there will only
ever be .25 or.5 or .75 after the number (I don't know whether that is
If anyone can show me how to do this I would be very grateful. I have been
messing around with MID and FIND to no avail and then started thinking that
SUMPRODUCT might have to get involved but it all got a bit m...Exchange server randomly asking random users to Authenticate randomly...
Has anyone had a problem like this where a user is in their Exchange mailbox
using Outlook 2003 and the server prompts them for their credentials? If
they hit cancel and exit out of Outlook and run it again it lets them into
Pls make sure the outlook 2003 Client does not using Cache mode
If is ,pls clearn this option
"Benjamin Chan" <bchan[pleasenospam]@controlproductsinc.com> ���g��l��s�D
> Has anyone had a problem like this where a user is in their Exchange
> using Outlo...unable to insert page numbers
my ms word 7 (enterprise package) has ceased to allow my to insert page
numbers. Everythng else is working fine.
I click "insert", that's ok; I click "page numbers" , that's ok; then I
click "top of page" or "bottom, etc." and this is where my word 7 fails
because no further option choice appear (though they had before). The only
option to appear is "save selection as page number" and this is "grayed out"
unless of course I have some current text selected.
this is the same problem whether I attempt to insert ...Criteria in Query
I have a multiuser query that prompts the user for criteria (sorry I do not
know the technical terms).
Is there a way that I can set this up where the user can type in part of the
criteria and it return with all fields that have that part in it?
So for example: If the field is state. The criteria in the query has [Enter
the State]. I want the user to be able to type Ala and it return Alaska and
Alabama. Is there a wild card? I tried entering * after Ala, but that did
not work. Can this be done?
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-...Macro to number blank cells
In one row I have:
A B C D E
Cust# Address 1 Address 2 Address3 Address 4 Address5
I have a macro that inserts 6 rows below each name, how could I copy
information in columns B-G to the 6 cells below cust #, Thanks in advance
for your help
Can it be this simple? I'm not positive that I understand what you're
asking. But try this.
You have blank rows below each record.
Select the columns B through G, beginning with the first BLANK row and down
Hit Ed...Generating Correlated Random Values in Excel
Thanks so much for your advice. I think that I have it figured out,
but can you confirm this for me? I can't afford to screw this up.
If mean(inflation) = .031
stdev(inflation) = .047
mean(stock return) = .106
stdev(stock return) = .204
A B C D
1 Z1 Z2 Inflation Stock Return
Data Generation Formulas
Are these formulas correct to generate the random data? Particularly
cell D2. Does this give me a complete value that t...formula query #2
Got a quick question for ya's.
I am currently trying to hash out a formula along these lines:
I have tried adding the 'indirect' function but it still brings me no joy.
Any help would be greatly appreciated.
Followup to newsgroup only please.
"Chiccada" <Chiccada@discussions.microsoft.com> skrev i en meddelelse
news:AF885A19-DB2A-41A2-B7A9-826EB7F341C1@m...converting "text" numbers to numbers
I have been using the technique of multiplying cells that have number
entries that behave like text entries by the value of 1 to convert them to
numbers. However, some mixed cell entries, convert strangely. For example
the entry "6 A" (without the quotes) becomes 0.25 when multiplied by 1.
Any explanation? Any ideas on how to solve other than checking cell by cell
to confirm all characters are numbers?
Confused! Frustated! <grin>.
Just figured out the "why". An entry like 6 A is converted to 6AM. Its
numerical value is 0.25. Still hoping for a ...Sorting imported "numbers"
I've imported a long list of "numbers" from a server. Now in my excel table I
can not sort them. I've tried multiplying the col. by "1" from paste special,
Add from a free cell and paste special, using a macro form the converting
text to number page, using trim and clean function, copy and paste as value,
using the text to columns command, all to no avail. The "numbers" still stay
left justified and sort by first number, i.e. 113 before 21 etc.
There are 1500 entries and I do no think the table woudl be of much use
after i tried to re-type in all t...Addition problem, number always 2 cents off...Help
I have a little problem with my SUMs
I have 200 to 300 rows of A * B = C
Then I tell it to do a =sum(d1:d300)
All the cells are formated to currency, two decimal places.
when I add up the numbers with an adding machine I'm always 2 - 22
cents off. (2 cents on this sheet, 22 cents on another sheet....)
Can anyone help
The issue is very likely to be rounding - that the product of each
multiplication has fractional cents that Excel considers in the SUM()
function, even though you don't see them fractional cents on screen
You can either modify your multiplication f...Auto Numbering
I want to be able to increase my ID field for each new record I enter, but I
don't want to use an autonumber field in my table. I have used the following:
ID = Nz(DMax("[id]", "tblNames")) + 1
and put it in the On Current property of the form. The problem is that when
the last field is completed and the user presses Enter, the new record
automatically puts in the new ID number. What I want to do is for the form to
put in the next ID number but only when the 2nd field has data entered in it.
Place your code into the AfterUpdate event of the second ...random pages
I have developed pages that randomly define a set of normal lung
function data based on gender, age and height. I have applied formulas
to this data simulate 5 classic lung function abnormalities (normal,
restrictive, obstructive, mixed and early obstructive.) Currently
the sheets that define the abnormal are named by one of the above lung
abnormalities. I would like to present data from random pages in a
work book to students and rather than have the pages named by the
abnormality be named a simulated patient name.
Can I have the name of a sheet set to equal data from to ...How to show what record number you are on in form?
I have created an unbound form in Access 2007 and am listing the records
which are in my table. I found out how to show how many records there are in
the table but would also like to show which record you are on. For example,
when I click the next button to see the next record it will show: "Record 2
Of 30", and so on. This is the one I used to count the amount of records:
Dim countRecords As Long
countRecords = DCount("customerNumber", "customer")
Me.txtRecordAmount = "Record # Of " & countRecords
How can I show what reco...Random Distribution
I need to randomly order numbers from a list or range of consecutive whole
numbers, such that each number is listed only once. Can this be done in
excel using functions, formulas or whatever? I want to incorporate it into
a spreadsheet with a macro to automatically generate the list and use it to
randomly designate selected entries.
"Rick via OfficeKB.com" wrote:
> I need to randomly order numbers from a list or range of consecutive whole
> numbers, such that each number is listed only once. Can this be done in
> excel using functions, formulas or whatever? I want to...Numbering Heading
Is there a way I can number heading and then continue with the same numbering
level on the ensuing paragraphs, eg
1. First Heading
2. Second Heading
See http://www.shaunakelly.com/word/numbering/OutlineNumbering.html for
general principles. If you have Word 2007, the implementation is slightly
different (through Define New Multilevel List), but the principles are the
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
"Trainer&quo...How to Retrieve Random Records through webservice method
I'm writing an application that retrieve records from CRM 3.0 automatically
using the web service. My question is, is there any way we can retrieve
records randomly by using any webservice method? Like we can use RAND() or
NEWID() to achieve this in SQL. Please help me if you have any idea about it.
My sample method code is given below:
CrmService service = new CrmService();
RetrieveMultipleRequest request2 = new RetrieveMultipleRequest();
// Create the ConditionExpression object.
ConditionExpression condition = new ConditionExpression...outline numbered list not auto-numbering
I have 2003 version of Word at work. I am trying to create an outline
numbered list with 3 levels. When I hit the enter button after typing the
text for an item, word does not seem to recognize that it should continue the
list. The next line just has normal formatting, and I'm forced to use the
format painter brush to copy a previous item from the list, and then Word
seems to recognize it as part of the list. I have verified the "Apply
Automatic Numbered Lists" is checked in the Tools/Autocorrect
Options/Autoformat as you type menu.
An observation about Word ...Random numbers
How exactly do i generate random numbers in VC++.Is the a function similar
to random() in C++.Thanks in advance
On Mon, 10 Jan 2005 22:42:52 -0800, "Fenn" <email@example.com> wrote:
>How exactly do i generate random numbers in VC++.Is the a function similar
>to random() in C++.Thanks in advance
VC++i is C++. Besides, there is no random() in C++. I think you mean
rand(). And besides, that is a C function imported into C++.
In any event, generate random numbers in Visual C++ using MFC exactly
the same way you would in any C++ (or C) program.