Cmnd buttons on main form

davidf

New member
Local time
Today, 13:53
Joined
May 3, 2013
Messages
9
Hello I have built a data base to tract units. under each unit there is tracts. I have a main form for the unit, and a subform for the tracts. On each form there is cmnd buttons which are next, prev, goto, add new and so on. the cmnd buttons on the main form have stopped working. The only ones that will work are the go to first and the go to last. the add new, comes up with "you cant go there" I have deleted the cmd button and then recreated them but they still want work. Anyone know what would cause this????. all the cmnd button on the sub-form work great. Im Using
access 2007. Also is 2007 compatible with 2010
 
Last edited:
If your command buttons are on the main form but refer to the sub form, be sure you are using the Correct Syntax for referring to the Sub form.
 
can you attach you db to see the problem?
 
Yes let me figure out how, im new to this forum
 
I see that the buttons work ok. What is not ok is the relationship betwen the two tables. I suggest that in the tract table you replace unit_name with unit_ID and create a one to many relationship. Then you'll recreate the forms and all will be ok.
 
That error that you mention is the error message that appear when you are on the last record and you press next record button. The same with the previous record button when you are on the first record.
 

Users who are viewing this thread

Back
Top Bottom