Rx_
Nothing In Moderation
- Local time
- Today, 03:47
- Joined
- Oct 22, 2009
- Messages
- 2,803
Hats off to Jdraw's example. Solved my immediate problem, but would really like to know the code for the alternate statement.
Jdraw shows two examples to get the same result, I got the code to work one way, but I could not get the code to work using the AND between the last two criteria.
NewPadNumber is a proposed number - that is checked to determine if it has been used within th ID_Area.
Many Credits to Jdraw - see the last example with the AND between two criteria:
http://www.access-programmers.co.uk/forums/showthread.php?t=191885&highlight=dlookup+criteria
Jdraw shows two examples to get the same result, I got the code to work one way, but I could not get the code to work using the AND between the last two criteria.
NewPadNumber is a proposed number - that is checked to determine if it has been used within th ID_Area.
Code:
Debug.Print DCount("Pad_Number", "Wells_PAD_Name", "ID_Area & Pad_Number = " & Me.ID_Area & NewPadNumber)
' returned 1 ' this one works great
Many Credits to Jdraw - see the last example with the AND between two criteria:
http://www.access-programmers.co.uk/forums/showthread.php?t=191885&highlight=dlookup+criteria