Rev. Michael L. Burns
Mar 20th, 2000, 12:37 AM
I have a database that I created for use at my church that uses the Data Environment and Data Reports. For the most part, everything works as desired but I do have a couple of questions.
1. On one of the forms I have a DataGrid that displays the database contents based on a data Environment command containg an SQL statement. This works fine. What I want to do is click a button that brings up a input box that allows me to enter a "LastName" and pass this parameter to a Data Environment command object that I've created and then display the results in the DataGrid. Basically, displaying only the records that contain that last name. The command object displays the correct information when I test it (the SQL) in design mode. But I can't seem to get the grid to display the correct results. Any help here would be most appriciated.
2. This question is somewhat related to the first. I have a number of reports that work fine but I'd like to be able to generate these reports between two dates. For instance, All "Email - Incoming" between March 1, 2000 and March 31, 2000. I know how to generate the reports based on a single criteria but how do I do it for two as mentioned above. I'd like to click a button, bring up a from containg to drop down calendar controls that allow me to enter beginning date and ending date and have the report generated based on these two dates. Any help here would be most welcomed also.
Thanks,
Rev. Michael L. Burns
1. On one of the forms I have a DataGrid that displays the database contents based on a data Environment command containg an SQL statement. This works fine. What I want to do is click a button that brings up a input box that allows me to enter a "LastName" and pass this parameter to a Data Environment command object that I've created and then display the results in the DataGrid. Basically, displaying only the records that contain that last name. The command object displays the correct information when I test it (the SQL) in design mode. But I can't seem to get the grid to display the correct results. Any help here would be most appriciated.
2. This question is somewhat related to the first. I have a number of reports that work fine but I'd like to be able to generate these reports between two dates. For instance, All "Email - Incoming" between March 1, 2000 and March 31, 2000. I know how to generate the reports based on a single criteria but how do I do it for two as mentioned above. I'd like to click a button, bring up a from containg to drop down calendar controls that allow me to enter beginning date and ending date and have the report generated based on these two dates. Any help here would be most welcomed also.
Thanks,
Rev. Michael L. Burns