Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by russellmunday

  1. russellmunday

    dataset to create mail attachment

    yes that now works Thanks
  2. russellmunday

    date query on sql table

    I added the your line but the sdate was underlined when i hover over it the message says "value of type 'date' cannot be coverted to integer
  3. russellmunday

    date query on sql table

    I am still getting the following error when connecting System.Data.SqlClient.SqlException: Error converting data type nvarchar to datetime. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at...
  4. russellmunday

    dataset to create mail attachment

    I do not have the origional code i tested with so i have recreated it the first problem is the dr.item is underlined and when i hover the mouse over it it says " overload resolution failed because no accessible item accepts this number of arguments. Dim da As SqlClient.SqlDataAdapter...
  5. russellmunday

    date query on sql table

    thanks ill give it a go
  6. russellmunday

    dataset to create mail attachment

    had to move on to another project an your help was appreciated but when i came back to this project and tried the code it would not work.
  7. russellmunday

    dataset to create mail attachment

    thanks but it does not work
  8. russellmunday

    date query on sql table

    I still am not sure of whats happening here but I have tried it and am getting the following results i am probably doing something wrong but i just can't seem to grasp it; System.InvalidOperationException: The SelectCommand property has not been initialized before calling 'Fill'. at...
  9. russellmunday

    dataset to create mail attachment

    I am trying to attach files to an email based on a selection that is stored in a sql table but when i try to loop through whats there i get various build errors. if anyone has done this or can see where i'm gpoing wrong please help 'connect to database and fill the daaset with the kitnumbers...
  10. russellmunday

    date query on sql table

    May be I'm getting this wrong but if the dataadapter does not have any idea of the parameter when it polls the database table all records will be returned and put into the dataset. and not the selected records I want.
  11. russellmunday

    date query on sql table

    If I use a stored proceedure how do I get the returned data into a dataset? because the datasets i have used so far have had a string passed to them see my example Dim sdate As Date sdate = Date.Today.AddMonths(1).ToString Dim ssql As String ssql = "select * from...
  12. russellmunday

    date query on sql table

    do you have any examples of using parameters?
  13. russellmunday

    date query on sql table

    can someone tell me where i'm going wrong with this Dim sdate As Date sdate = Date.Today.AddMonths(1).ToString Dim ssql As String ssql = "select * from information where expirydate <'" & sdate & "'" i want the records that are about to run out to be returned. Thanks
  14. russellmunday

    database value as email file name

    your a star thanks for your help

Part and Inventory Search

Back
Top