Hi There,
Yes, I am a newbie especially because I have been tasked with updating an old MS ACCESS 2003 database.
The school wants to add a record to a students file by clicking on a button which will add a new record but also increment the daily record number.
In other words, when adding a new record copy the students first and last name , class name but increment the number of days in the class. The issue is that I can get VBA to update the first and last name and class name but I get a 3164 error when I try to increment the num_of_days
The record looks like this:
txt_fname
txt_lname
txt_classname
num_of_days
my program says:
addnew
!txt_fname = me.txt_fname
!txt_lname = me.txt_lname
!txt_classname = me.txt_classname
!num_of_days = num_of_days + 1
update
However as soon as the program reaches the "!num_of_days ..." line it drops to the error code and displays error 3164.
What am I doing wrong?
Yes, I am a newbie especially because I have been tasked with updating an old MS ACCESS 2003 database.
The school wants to add a record to a students file by clicking on a button which will add a new record but also increment the daily record number.
In other words, when adding a new record copy the students first and last name , class name but increment the number of days in the class. The issue is that I can get VBA to update the first and last name and class name but I get a 3164 error when I try to increment the num_of_days
The record looks like this:
txt_fname
txt_lname
txt_classname
num_of_days
my program says:
addnew
!txt_fname = me.txt_fname
!txt_lname = me.txt_lname
!txt_classname = me.txt_classname
!num_of_days = num_of_days + 1
update
However as soon as the program reaches the "!num_of_days ..." line it drops to the error code and displays error 3164.
What am I doing wrong?