lloyddobler
New member
- Local time
- Today, 14:02
- Joined
- Jan 19, 2010
- Messages
- 2
Hi all, I've been scouring net and can't find anything that helps ver well. I'm very weak with VB so need all help I can get. I have a form with 2 fields: CONTROLNUMBER and COMMENTS. What I'd like to do is when a CONTROLNUMBER is entered, the COMMENTS fields populates, which works fine with a DLOOKUP. But now I'd like to add a BEFORE UPDATE event that if the CONTROL NUMBER entered already exists, then UPDATE the current record, otherwise, INSERT a new one. I have no idea where to begin and any help would be appreciated. My table has those 2 fields as the only 2 columns as well, as i'd like the CONTROLNUMBER to be unique/primary key.