englishkid19
Board Regular
- Joined
- Nov 14, 2012
- Messages
- 89
Hi All,
This must have been covered before : looking for pointers please .
I have a userform with an "Add Button/Submit".
The user populates 5 to 6 text and number boxes then clicks submit. I have that all working and it adds records to the db.
The part i need help with is an UPDATE statment. so if a user makes errors in there initial submission , i want them to be able to UPDATE the record they have entered....
So essentially it needs to be something like this :
IF Me.DateBox.Value & Me.ResourceBase.Value = Input.DateAdded & Input.ResourceBase = TRUE
<<so it compares the date & resourcebase against dates and resource base combinations in the table >>
THEN
" Execute my update statement"
ELSE IF
Evaluate next row of database
<< i could probably do with another statment like " The combination of resource base and date you are trying to update are not present in table >>
END IF
any pointers greatlly appreciated
This must have been covered before : looking for pointers please .
I have a userform with an "Add Button/Submit".
The user populates 5 to 6 text and number boxes then clicks submit. I have that all working and it adds records to the db.
The part i need help with is an UPDATE statment. so if a user makes errors in there initial submission , i want them to be able to UPDATE the record they have entered....
So essentially it needs to be something like this :
IF Me.DateBox.Value & Me.ResourceBase.Value = Input.DateAdded & Input.ResourceBase = TRUE
<<so it compares the date & resourcebase against dates and resource base combinations in the table >>
THEN
" Execute my update statement"
ELSE IF
Evaluate next row of database
<< i could probably do with another statment like " The combination of resource base and date you are trying to update are not present in table >>
END IF
any pointers greatlly appreciated