Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 22nd, 2007, 09:01 PM
Registered User
 
Join Date: Dec 2006
Location: , , United Kingdom.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default DMAX Function Problem

I am trying to convert my program from access to vb6. I have successfully convert all my queries bar one to work in vb6. It doesnt work because it uses the DMAX function from access. Can you help me convert it.

UPDATE Trans SET Trans.[Count] = IIf(DMax("[Count]","Trans_Query")>[count],DMax("[Count]","Trans_Query"),[count]);

It updates the trans tables count column if the max value from the trans_query's count column is greater.

Any help would be great.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Round Function darrenb Access 3 May 22nd, 2007 05:45 PM
Date Function problem beetle_jaipur Classic ASP Basics 5 July 6th, 2006 01:08 PM
Problem with function mat41 Classic ASP Basics 3 July 16th, 2005 01:19 AM
shell function problem bml Excel VBA 1 February 12th, 2005 05:42 PM
Problem with a Javascript function SuMajestad PHP How-To 4 August 17th, 2004 09:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.