Discussion Locked
0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have some forms i am designing in Access 2000.They have quantity fields and i am trying to get my table to update if the same specs are entered. i have material type, size and core type and if these are the same i would like the table to combine them. i am also trying to figure out how to get my form to have and add function for inventory and debit function. Please respond with any feedback. Thank you
3 replies
by oliver w.
hi,
use unbound fields on the form, insert a button and place an onclick_event_procedure.
there check if the fields are the same. if they are, then write them to the db
if (me.type = me.size) and (me.size = me.core) then
dim db as database (set reference to dao 3.x first)
set db = currentdb
db.execute("INSERT INTO table (Yourfield) SELECT '" & YourValue & "'as Expression1")
end if
-now - only when the fields are the same, a new record is written to the db
hope that helps,
Oliver
by ricks
Thank you for your assistance.
by ricks
This question was closed by the author
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending
0 helpful
13 replies
Question
Is WSL still relevant in 2026?
0 helpful
1 reply
0 helpful
2 replies
0 helpful
10 replies
Question Unanswered
i need help in transferring my bulk emlx files
0 helpful
0 replies