hello this might be a really easy problem but its one thats got me stumped
problem 1
basically i'm trying to insert a new record using the primary key from another form (not that it is a foriegn key in the table that i am attempting to add data too) when i use a button to open a new form the only way i could carry forward the value i wanted was to have a text box with the value [forms]![bladebladebla]![primary key i want to use] but that won't then add that to the table when it autmatically saves the record so i used an insert query actioned by a button... of course then when you try to exit the form access tries to save it and can't ... it has been saved but gives loads of nasty error messages .... please help
problem 2
related to problem one, is a way i've tried to overcome problem one by simply having the user select the value from a drop down box etc etc bit of a wimp out but should work very well .... however when navigating to the form to add a new record i want a button that will "open form in add new record state" something which you can do from the switchboard but not from a button within a form .... any ideas
All the best
hope my problems aren't too trivial for a bit of assistance feel a bit silly asking for help over such a small problem but its driving me up the wall !!!!
cheers
Andy
problem 1
basically i'm trying to insert a new record using the primary key from another form (not that it is a foriegn key in the table that i am attempting to add data too) when i use a button to open a new form the only way i could carry forward the value i wanted was to have a text box with the value [forms]![bladebladebla]![primary key i want to use] but that won't then add that to the table when it autmatically saves the record so i used an insert query actioned by a button... of course then when you try to exit the form access tries to save it and can't ... it has been saved but gives loads of nasty error messages .... please help
problem 2
related to problem one, is a way i've tried to overcome problem one by simply having the user select the value from a drop down box etc etc bit of a wimp out but should work very well .... however when navigating to the form to add a new record i want a button that will "open form in add new record state" something which you can do from the switchboard but not from a button within a form .... any ideas
All the best
hope my problems aren't too trivial for a bit of assistance feel a bit silly asking for help over such a small problem but its driving me up the wall !!!!
cheers
Andy