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 SkipVought 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. FrankMars

    Exporting Records to Excel

    Thanks Andy and thanks Duane. Duane, your code worked great. I wouldn't have gotten there without it. Thanks again.
  2. FrankMars

    Exporting Records to Excel

    Thanks Duane. I understand what you're suggesting to do but I'm unable to write the code in vba on a button to update the SQL property of a saved query with "mySearch". How do I do that? I am able to write the code to export the saved query to Excel as shown below. Thanks again. Dim...
  3. FrankMars

    Exporting Records to Excel

    Hello - I have several fields on a main form (asfAddressAll) that filter records to a continuous subform (asfAddressAllSubform). I would like to send the filtered records on the subform to Excel. How can I accomplish this? The following is the code used on buttons in the main form for...
  4. FrankMars

    How to position and resize an external program

    Thanks strongm, works great. Still developing so may be back with additional questions.
  5. FrankMars

    How to position and resize an external program

    Hello, I am bringing to top the window of an external program (Microsoft Outlook) with the following code: Private Declare Function BringWindowToTop Lib "user32" _ (ByVal hwnd As Long) As Long Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _...
  6. FrankMars

    Bring Internet Explorer to Top

    Hello. I am able to open Internet Explorer and Outlook with the following code on a button on my form; Dim X As Variant Dim Y As Variant Dim Path1 As String Dim Path2 As String Path1 = "C:\Program Files\Internet Explorer\iexplore.exe" Path2 = "C:\Program Files (x86)\Microsoft...
  7. FrankMars

    VBA Code to Retrieve Records from Combobox

    Andy - my field is declared as a number. I removed all single quotes from that line as suggested and it worked. Thank you very much!
  8. FrankMars

    VBA Code to Retrieve Records from Combobox

    Andy/Duane- I changed the code as suggested and I'm getting "Run-time error '2001' - You canceled the previous operation". ????. It seems to be a problem with the last If Not statement but I cant find it. The error does not come up if nothing is in the from/to fields. My code is as follows...
  9. FrankMars

    VBA Code to Retrieve Records from Combobox

    Andy - thanks, works well. Now I'm having another problem. I added additional combo boxes and I'm attempting to get recordset results which are in the range between the 2 values in those combo boxes. This is the code I have so far which is not working due to the last If Not statement: Dim...
  10. FrankMars

    VBA Code to Retrieve Records from Combobox

    MajP, I ran into another problem. Your code worked but when adding an additional combo box to filter by, it only works when either all, one or none of the combo boxes are filled out. I plan on adding 10 or so more combo boxes to filter by. Is it possible to fill out any combination of combo...
  11. FrankMars

    VBA Code to Retrieve Records from Combobox

    MajP- The first code works. I wasn't able to get the second code to work. Thank you.
  12. FrankMars

    VBA Code to Retrieve Records from Combobox

    I have a continuous form which I filter the results by selections through 2 combo boxes and clicking a button in the header portion of the form. My code on the button is as follows: Private Sub Command17_Click() Dim mySearch As String mySearch = "Select * from qMarconL where (([City] = '" &...
  13. FrankMars

    Bringing external application window to top (maximizing) after it has been minimized

    Thanks AceMan, works great! Also, the window title is now working ok.
  14. FrankMars

    Bringing external application window to top (maximizing) after it has been minimized

    Thanks AceMan, that's just what I did with Calculator. The Calculator does come up to top when it is behind Access. However, when Calculator has first been minimized, it only flashes on the taskbar and does not come to top. Is there a way to have it come to top after it has been minimized to...
  15. FrankMars

    Bringing external application window to top (maximizing) after it has been minimized

    Thanks AceMan. I'm trying to implement your code but am having problems. Access isn't accepting the WindowTitle. The title bar of the window literally reads; Chief Architect Premier X5 - [Hamilton Comps1: Floor Plan]. I've tried underlines, single and double quotes, etc. Can you tell me...
  16. FrankMars

    Bringing external application window to top (maximizing) after it has been minimized

    I have 4 buttons on a form, each of which open a different file in a single external application. When I click the button to open File 1, the external application and file open on top as desired. After doing some work on that file, I minimize the external application and return to my Access...
  17. FrankMars

    Closing IE and Outlook with a button

    Thanks Jock. I did find the following link helpful: http://www.tek-tips.com/viewthread.cfm?qid=530735
  18. FrankMars

    Closing IE and Outlook with a button

    Hi, I am opening IE and Outlook from a button on a form with the following code: Private Sub OpenIEandOutlook_Click() Dim x As Variant Dim y As Variant Dim Path1 As String Dim Path2 As String Path1 = "C:\Program Files\Internet Explorer\iexplore.exe" Path2 =...
  19. FrankMars

    Get web page data into excel spreadsheet

    Thanks Skip. I have tried your suggestion and I have 2 problems. First, each line of data imported goes into one cell which makes it 'unsortable'. For example, width and depth go into a single cell, so I am unable to sort by width. Secondly, I go for the data on a daily basis so I am trying...

Part and Inventory Search

Back
Top