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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. PLCBeetle

    Pass Form value to Report Record Source

    Good morning... I am trying to populate a Report with only 2 fields. This query works fine as the Record Source of the report: SELECT Daily_Data.Report_Date, Daily_Data.Water_Comments AS Display_Data FROM Daily_Data; BUT, what I really need is something like this as the Record Source of the...
  2. PLCBeetle

    Passing a form value to query...

    VBA coding, yes, a little bit. Not sure if I should use a report or a form to display the data returned. Also I am not sure how to use the SQL query string you just provided other than to paste it into the Record Source of the Form or Report. This I have tried without success as you can see...
  3. PLCBeetle

    Passing a form value to query...

    Hello... Great idea on the combx box. Thank you for that, I will do just that. SELECT Report_Date, " & Forms!frm_reports!Comment_Search.Value & " AS Display_Data FROM Daily_Data I have copied and pasted the code you provided into the SQL query designer and this is the result I get...
  4. PLCBeetle

    Passing a form value to query...

    Hello... I have a form named: Reports On this form there is a text box named: Comment_Search Contents of the text box is: Water_Comments The contents of the text box are actual column names in a table. I am trying, without success, to create a query which will use the text box data as the...
  5. PLCBeetle

    Pass Form value to Report Record Source

    Hello... I am trying to pass a column name from a form to a report query record source without any luck. The Report_Date data is coming thru into the form detail but that is all Form name: frm_reports Form text box: comment_search This text box contains the name of the column in the...
  6. PLCBeetle

    MSAccess 2010 join query help please...

    GOT IT, YIPEE :) I needed to add the ODBC connection string again to the second table, like so: SELECT partno12nc, apodo, partno, suffix, suffixtext FROM [ODBC;DRIVER=SQL Server;SERVER=ms001;DATABASE=partspec12nc;Trusted_Connection=Yes].[parameters] AS A INNER JOIN [ODBC;DRIVER=SQL...
  7. PLCBeetle

    MSAccess 2010 join query help please...

    I have this query which I have written, tested and works great in MSSQL: SELECT partno12nc, apodo, partno, suffix, suffixtext FROM partspec12nc.dbo.parameters A INNER JOIN partspec12nc.dbo.suffix AS B ON A.suffix = B.id WHERE partno12nc <> 0 and suffix <> 0 ORDER BY partno12nc I am trying to...
  8. PLCBeetle

    Extracting and sorting records by year query

    I have an Access 2010 database in which I am having issues to isolate the text date from the string and sort the records by the text date. Table: Movie Column: Title Data type: Text Sample table data: 12 Years A Slave (2013-R) 127 Hours (2010-R) 17 Again (2009-PG13) 21 (2008-PG13) 27 Dresses...
  9. PLCBeetle

    Align text in Excel (xlLeft) not working...

    Here are the declarations: Dim newExcelApp As Object Set newExcelApp = CreateObject("Excel.Application") Dim newWbk As Object Set newWbk = newExcelApp.Workbooks.Add Dim newWkSheet As Object Set newWkSheet = newWbk.Worksheets(1) Also, these two...
  10. PLCBeetle

    Align text in Excel (xlLeft) not working...

    I have an MSAccess 2010 database in which I was using a VBA reference, early binding, and this code to align the text in the cell to the left: newWkSheet.Cells(2, 2).HorizontalAlignment = xlLeft Due to MSAccess version and reference conflicts I removed the VBA reference and now I am using late...
  11. PLCBeetle

    VBA reference incompatibility between Access versions...

    Good morning to all… Background… I have written a database program in MSAccess 2010 and put this program on my server for everyone to use. This program opens MSExcel 2010, creates a data file, saves the file, closes the file and MSExcel. To do this I use the Microsoft Excel 14.0 Object Library...
  12. PLCBeetle

    Hyperlink in Access report

    I am exploring the PDF route now. I was able to export and save it but when I opened it the hyperlinks did not function. Another item to mention is that I don't want to export or save the report. I just want to open it and have the hyperlinks work correctly. Thanks a bunch
  13. PLCBeetle

    Hyperlink in Access report

    The hyperlink is an address to a Excel file on my local server, not a web address.
  14. PLCBeetle

    Hyperlink in Access report

    Hello and good morning. I am trying to include a hyperlink on a report using the followhyperlink command in VBA. It is working great when I open the report using acViewReport option to open it. The problem is that I cannot see all the records or seem to figure out how to scroll between the many...
  15. PLCBeetle

    Horizontal comma seperated numbers...

    The data type of eco in the database = Int The query produces the following error... Server: Msg 245, Level 16, State 1, Line 2 Syntax error converting the varchar value ',' to a column of data type int.
  16. PLCBeetle

    Horizontal comma seperated numbers...

    Hello to all... I am trying to create a MSSql query that will return a horizontal list of numbers seperated by commas using the code below. I am close but not quite working correctly. Any help will be greatly appreciated. Many thanks :-) DECLARE @pending varchar(500) SET @pending = ''(SELECT...
  17. PLCBeetle

    Frustrated with date query...

    Ok, I understand now. Thanks. I am working with your suggested query right now.
  18. PLCBeetle

    Frustrated with date query...

    I have been trying to format the column data last_update in the sql statement to yyyy-mm-dd and then search for this date. Won't this work or am I "barking up the wrong tree"? Thanks
  19. PLCBeetle

    Frustrated with date query...

    Hello all. I need your help please. I have a MSSql2000 table with a column named last_update with the datetime format. I am trying to query only the date portion of the data to verify that an entry for a specific day does not exist before inserting a new record. I am not having much luck or...

Part and Inventory Search

Back
Top