Hi poeple, is there anyway to make a counter field that is automatically filled (1,2,3,...) rather than filling it manually and also it resets each new day?? I'm not talking about autonumber field because of its nature also because I use it as a uniqe field "VisitID",, please help..
Sorry for this Stupid quesion, is result gonna be a date or a number? and how that field gonna count automatically (1,2,3...),if there is much code to write please help me with this, I'm not expert in vba,, thank you again.
The Nz function is needed when there a value doesn't exists for VisitID for today's date. DMax would return a NULL, but the Nz function will substitute a 0.
Now when the new record is created, use the value of lngNewVisitID as the value for VisitID.
The Nz function is needed when there a value doesn't exists for VisitID for today's date. DMax would return a NULL, but the Nz function will substitute a 0.
Now when the new record is created, use the value of lngNewVisitID as the value for VisitID.
The Nz function is needed when there a value doesn't exists for VisitID for today's date. DMax would return a NULL, but the Nz function will substitute a 0.
Now when the new record is created, use the value of lngNewVisitID as the value for VisitID.
The potential for conflict does exist, but to reduce the risk, create the record immediately after getting the next VisitID. The risk increases if you ask for the next VisitID and do other operations before creating the record. That gives the next user to ask (and receive) the same VisitID.
The potential for conflict does exist, but to reduce the risk, create the record immediately after getting the next VisitID. The risk increases if you ask for the next VisitID and do other operations before creating the record. That gives the next user to ask (and receive) the same VisitID.