L lead 27 Registered User. Local time Today, 00:56 Joined Mar 24, 2007 Messages 147 Aug 14, 2007 #1 Hi I am trying to do something which im sure I can do but just cant get my head to get it started. I am trying to create a button that when pressed will update a field in a table to todays date Any ideas?
Hi I am trying to do something which im sure I can do but just cant get my head to get it started. I am trying to create a button that when pressed will update a field in a table to todays date Any ideas?
boblarson Smeghead Local time Today, 00:56 Joined Jan 12, 2001 Messages 32,040 Aug 14, 2007 #2 In the button's click event - Me!YourFieldName = Date
L lead 27 Registered User. Local time Today, 00:56 Joined Mar 24, 2007 Messages 147 Aug 14, 2007 #3 Is it possible to do it if you are trying to change a field in a table that isnt linked to the form the button is on?
Is it possible to do it if you are trying to change a field in a table that isnt linked to the form the button is on?
L lead 27 Registered User. Local time Today, 00:56 Joined Mar 24, 2007 Messages 147 Aug 14, 2007 #4 I have tried: tbl!lastdate1.lastcheck = Date The table is last date 1 and the field is last check, but I get the error Run time error 424, object required
I have tried: tbl!lastdate1.lastcheck = Date The table is last date 1 and the field is last check, but I get the error Run time error 424, object required
boblarson Smeghead Local time Today, 00:56 Joined Jan 12, 2001 Messages 32,040 Aug 14, 2007 #5 lead 27 said: Is it possible to do it if you are trying to change a field in a table that isnt linked to the form the button is on? Click to expand... You would just create an update query for that one and then run the update query. The other code is good only if the form you have it on is bound to that table.
lead 27 said: Is it possible to do it if you are trying to change a field in a table that isnt linked to the form the button is on? Click to expand... You would just create an update query for that one and then run the update query. The other code is good only if the form you have it on is bound to that table.