how do i

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » How do i

How do i

resolvedResolved · Low Priority · Version 2003

Phil has attended:
Excel VBA Intro Intermediate course

How do i

contruct something like a DSUM in VBA - is it possible to perform such a complicated table

DSUM Function in VBA

Hi Phil

To use one of the Excel functions like DSUM, you need to create a variable to store the DSUM value. The variable type must equal the type of data being returned (In this case Single or Double).

The code would be:

Dim MyDSumValue As Single

MyDSumValue = Application.WorksheetFunction.DSum(Database, Field, Criteria)


Hope this helps

Carlos

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Paste a web address into the hyperlink address field

If you copy a web address the only way to paste into the address field of the hyperlink box is to use CTRL + V. Right click paste does not work.

View all Excel hints and tips


Server loaded in 0.07 secs.