Updating from Form to Table (Mulitple fields)

G

Guest

Hi
I have a table with following fields
-Currency
-Currency code
-Action date
26 currencies are added to the table, and Action date field is empty.
I need to update all the 26 fields (in Action date) with a date, from a form
(user input)
Form Name : Currency Input
Field Name : COB (DATE FORMAT)
By inputing COB need to update all the fields of the currecy table
*Actiondate*
In other words Action date = Form!COB

Please help

Thanks
 
G

Guest

in the after update event of the COB field add the following code

DoCmd.RunSQL "UPDATE [Currency Table] SET [Action Date] = #" & Form!COB & "#"
 
G

Guest

Thanks Dennis, helped me lot of time, by the by please suggest me a book
where i can have this do cmd sql examples.

Thanks
rony

Dennis said:
in the after update event of the COB field add the following code

DoCmd.RunSQL "UPDATE [Currency Table] SET [Action Date] = #" & Form!COB & "#"

Rony said:
Hi
I have a table with following fields
-Currency
-Currency code
-Action date
26 currencies are added to the table, and Action date field is empty.
I need to update all the 26 fields (in Action date) with a date, from a form
(user input)
Form Name : Currency Input
Field Name : COB (DATE FORMAT)
By inputing COB need to update all the fields of the currecy table
*Actiondate*
In other words Action date = Form!COB

Please help

Thanks
 
G

Guest

This is in the normal Access Help. Look under DoCmd or RunSQL

Rony said:
Thanks Dennis, helped me lot of time, by the by please suggest me a book
where i can have this do cmd sql examples.

Thanks
rony

Dennis said:
in the after update event of the COB field add the following code

DoCmd.RunSQL "UPDATE [Currency Table] SET [Action Date] = #" & Form!COB & "#"

Rony said:
Hi
I have a table with following fields
-Currency
-Currency code
-Action date
26 currencies are added to the table, and Action date field is empty.
I need to update all the 26 fields (in Action date) with a date, from a form
(user input)
Form Name : Currency Input
Field Name : COB (DATE FORMAT)
By inputing COB need to update all the fields of the currecy table
*Actiondate*
In other words Action date = Form!COB

Please help

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top