I have two forms and I am running a sql query to provide a set of variables in my first form that I need to pass to my second form. Here is the code that I have:
The values that I'm declaring are payrollstartdate and payrollenddate and then I need to pass the values that you can see on these two lines:
payPeriodStartDate = oDr.GetDateTime(1) payPeriodEndDate = payPeriodStartDate.AddDays(7)
to form 2 which then shows the data retrieved from a sql query in the load event to a datagrid view. Can anyone offer any kind of assistance with my code on how to properly do this?Thank you
Doug