ACCESS NEWB
04-02-2008, 10:45 PM
Hi
How can I make table make query run when i click on add new record in my form,or when i exit form?
How can I make table make query run when i click on add new record in my form,or when i exit form?
|
View Full Version : Run table make query after form input ACCESS NEWB 04-02-2008, 10:45 PM Hi How can I make table make query run when i click on add new record in my form,or when i exit form? CyberLynx 04-02-2008, 11:24 PM What type of Query and why? . ACCESS NEWB 04-03-2008, 12:39 AM Why is very good question. I realize I can not get what I want in this way,simply because running table make query overwrite exisiting table which means that new created table cannot be in relationship with others, so lets forget I asked anything in a first place Thank you for your reply though namliam 04-03-2008, 01:56 AM You will want to run an Append query and use the "on exit" event of the form gemma-the-husky 04-03-2008, 02:27 AM Why is very good question. I realize I can not get what I want in this way,simply because running table make query overwrite exisiting table which means that new created table cannot be in relationship with others, so lets forget I asked anything in a first place i dont think this is correct - i think if the new table has the same columns and same name, the realtionships will stay in place YOU WILL lose any indexes with a new table, so instead of a maketable you could always 1) delete data in existing table (delete * from table) 2) append all the new data (insert into table) - again, it assumes the fields are all named the same Rabbie 04-03-2008, 02:32 AM i dont think this is correct - i think if the new table has the same columns and same name, the realtionships will stay in place YOU WILL lose any indexes with a new table, so instead of a maketable you could always 1) delete data in existing table (delete * from table) 2) append all the new data (insert into table) - again, it assumes the fields are all named the same Gemma has hit the nail on the head. If you delete the old data and insert the new data you will keep the relationships and the indexes. definitely the best way to go. As a bonus it is also quicker. |