G
Guest
I have a form that indicates if someone's email address is missing. If the
indicator pops up that says it is missing, then the user can click on the
word email and a second form pops up with a box to enter their email address.
The problem is that I'm having problems calling the appropriate record to
ender the address since the Unique ID has gaps in it where records were added
and deleted. The code below is what I use, but since acGoTo is an offset
function, it sends it to the wrong record. Is there a way to figure out what
it's position and not it's ID? Would make a great deal of use!
CurRec = DLookup("[ID]", "Members", "[ID] = " & Me.[FullName])
stDocName = "Email Entry"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.GoToRecord , , acGoTo, CurRec
Thank you in advance, would love some help.
indicator pops up that says it is missing, then the user can click on the
word email and a second form pops up with a box to enter their email address.
The problem is that I'm having problems calling the appropriate record to
ender the address since the Unique ID has gaps in it where records were added
and deleted. The code below is what I use, but since acGoTo is an offset
function, it sends it to the wrong record. Is there a way to figure out what
it's position and not it's ID? Would make a great deal of use!
CurRec = DLookup("[ID]", "Members", "[ID] = " & Me.[FullName])
stDocName = "Email Entry"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.GoToRecord , , acGoTo, CurRec
Thank you in advance, would love some help.