Jump to content

Ajuda em programa de visual basic para alertar quando alguém faz anos


Recommended Posts

Boas, desde já Obrigado por responderes, já consegui fazer!

O que fiz foi o seguinte:



con = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\nomedopc\Documents\DataBaseName.accdb")

cmd = New OleDbCommand("SELECT * from clientes where Day(DataNascimento) = Day(Now()) and month(DataNascimento) = month(now())", con)

da = New OleDbDataAdapter(cmd)

ds = New DataSet()

If con.State = ConnectionState.Open Then


End If


da.Fill(ds, "consulta")

DataGridView1.DataSource = ds.Tables(0)

Estava a fazer em VisualBasic

Edited by peenas
Link to comment
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.