Jump to content
oliveira1991

Data na base de dados

Recommended Posts

oliveira1991

Boas pessoal, estou a fazer um webbrowser e queria adicionar o histórico, à base de dados, e queria inserir a data automaticamente sem a intervenção do utilizador, isso é possível?

Alguma dica??


Live for ever

Share this post


Link to post
Share on other sites
oliveira1991

ok pessoal, consegui chegar ao que queria!

para quem tiver o mesmo problema fica aqui a sintaxe!

"INSERT INTO Historico(Sites_Visitados,Data) VALUES('" & ComboBox1.Text & "','" & DateAndTime.Today & " ')"


Live for ever

Share this post


Link to post
Share on other sites
ribeiro55

Melhor até do que isso, é dar a tarefa à DBE:

"INSERT INTO Historico(Sites_Visitados,Data) VALUES('" & ComboBox1.Text & "',GETDATE())"


Sérgio Ribeiro


"Great coders aren't born. They're compiled and released"
"Expert coders do not need a keyboard. They just throw magnets at the RAM chips"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.