I have made a form that loads at the begining of my program. Checks for accounts due on the day the program is run. It loads fine with my SELECT statement. Can someone help figur out how to close the form if the Select returns NULL.. Here is my form Load code..
Private Sub Accounts_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'AutoBillDS.Customer' table. You can move, or remove it, as needed. Me.CustomerTableAdapter.Fill(Me.AutoBillDS.Customer) LblToday.Text = FormatDateTime(Now, DateFormat.ShortDate) LblTime.Text = FormatDateTime(Now, DateFormat.LongTime) CustomerBindingSource.Filter = "Next_Billing Like'" & LblToday.Text & "%'" End Sub
Thanks for any help I can use.
Edited by Narue: Fixed code tags