Hi there -
I'm a beginner to access and would like to know how I can open a form in 'edit' mode if a certain value exists and 'add' mode id it does not. I posted this to macros but now think it is a query problem?
I have a two tables with a one-to-one relationship. Project and bank. I have a button on the project from which opens the bank form. What I need to do is open the bank form with the correct projectID and corresponding bankID in edit mode if it exists. ANd if not open the bank form in 'add' mode with the correct projectID.
I have been able to use 'setvalue' to set the correct projectID in bank (using) the project form but have had no luck with the rest. Any help would be more than welcome and greatly appreciated.
Project table bank table
ProjectID (PK) (autonumber) bankID (PK) (autonumber)
name projectID
address bankname
bankaddress
Thanks
Lex
I'm a beginner to access and would like to know how I can open a form in 'edit' mode if a certain value exists and 'add' mode id it does not. I posted this to macros but now think it is a query problem?
I have a two tables with a one-to-one relationship. Project and bank. I have a button on the project from which opens the bank form. What I need to do is open the bank form with the correct projectID and corresponding bankID in edit mode if it exists. ANd if not open the bank form in 'add' mode with the correct projectID.
I have been able to use 'setvalue' to set the correct projectID in bank (using) the project form but have had no luck with the rest. Any help would be more than welcome and greatly appreciated.
Project table bank table
ProjectID (PK) (autonumber) bankID (PK) (autonumber)
name projectID
address bankname
bankaddress
Thanks
Lex