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 strongm 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. AskMan

    Export Query to more excel worksheets

    What a chance ... I didn't test it [thumbsup2]
  2. AskMan

    Word Macro

    Humm ... this code works correctly on my PC Is there any message when Word is crashing ?
  3. AskMan

    Export Query to more excel worksheets

    You can compare records ... I put in red my corrections First, Order your query by 'Year' Dim db As Database Dim rst As Recordset Dim qdf As QueryDef Dim objXL As Excel.Application Dim objWkb As Excel.Workbook Dim objSht As Excel.Worksheet Dim iRow As Integer Dim oldYear as long Set db =...
  4. AskMan

    query to apply filter and remove characters in results

    ??? don't understand ... this works 'perfectly' on my PC I just have forgotten the End Sub into the first code I just can tell you to try once more, copying my first code and adding the 'End Sub'(if not already do) Sorry
  5. AskMan

    Build Dynamic Query SQL with Variables

    You can't define recordsource = PersonnalSummary because there no value defined for PersonnalSummary() ... I don't really understand all your code, but if this recordset is necessary, you can define the form's recordet using Form.Recordset = rsTemp.Name while the recordset is still defined...
  6. AskMan

    Build Dynamic Query SQL with Variables

    Create a empty query named myQRY In a module, put this code Public Sub DynamicQuery() Dim strQuery as String, myValue as Date On error goto error_handler ' I let you define it MyValue = InputBox("Date ?") mystr = "SELECT " & format(myValue,"yyyy") &...
  7. AskMan

    Who's up for a chalenge

    Private Sub BackCom_Click() CurrentDb.Execute "INSERT INTO YourTable ([BackCom]) Values ((value*10%)+"Amount") End sud Hope that helps
  8. AskMan

    Word Macro

    Hi, I put the corrections in red ... with comments It have to work like that Hope that helps Sub Send() Dim strDocName As String Dim Message, Title, Default, MyValue Dim strDefaultAddress As String ' Get the current documents name strDocName = ActiveDocument.Name 'I remove your double-quotes...
  9. AskMan

    Command Button Syntax

    you're welcome ... didn't it merit a vote ? (joke) bye
  10. AskMan

    query to apply filter and remove characters in results

    ...NewString as String, NewChar as string, i as Long Set rst = CurrentDb.OpenRecordset("SELECT MyField FROM MyTable WHERE MyField LIKE '*\*'") While Not rst.EOF NewString = "" For i = 1 To Len(rst!MyField) NewChar =...
  11. AskMan

    Command Button Syntax

    strSubject = iif(Button.caption = "RESUBMIT YOUR REQUEST" , "RESUBMITTED REQUEST#" & Forms![RequestForm]![ID], "New Ad Hoc Report Request #" & Forms![RequestForm]![ID]")
  12. AskMan

    increment vale in entire column of a table with click of a button

    Private Sub Button_Click() Currentdb.Execute "UPDATE MyTable SET MyField = MyField + Increment" End Sub
  13. AskMan

    New to Access - need some help

    oops ... too slow ! Sorry Bye
  14. AskMan

    New to Access - need some help

    1- I think it would be easier to use a combo box. It's you to define the parameters you need like RowSource = "SELECT [WhatYouWant] FROM YourTable" 'To display only the records in your table instead of executing your test at each time LimitToList = True 'To display an error...
  15. AskMan

    Limiting Choices in a Combo Box

    You should have your records in a table. Supposing you have a table myTABLE with the 2 fields [Products] and [Market]. You just have to : - parameter your first combo like that drpPRODUCT.Rowsource = "SELECT PRODUCT FROM myTABLE" -and add this code into the drpMARKET_Click event...
  16. AskMan

    Splitting a text field

    You should parameter your DropDown like that DropDown.RowSourceType = "Table/Query" DropDown.RowSource = "SELECT [LastName], [FirstName], [LastName] & [FirstName] as [First and Last Name] FROM myTable" DropDown.ColumnCount = 3 DropDown.ColumnWidths = "0;0;2835&quot...
  17. AskMan

    Splitting a text field

    Hi I think you don't need to split You can put into your dropdown the 3 fields [FIRST NAME] - [LAST NAME] - [FIRST & LAST NAME] and only let the field [FIRST & LAST NAME] visible. Then, you've just have to handle the values of the 2 others colums and put them into your fields Hope that helps SEB
  18. AskMan

    Discontiniue delete-On Delete Event ...Before Delete Confirmation

    And ? I don't understand your problem ... [bat] If you look for the good event, you should put your code into the BeforeDelConfirm event Private Sub Form_BeforeDelConfirm(Cancel As Integer, Response As Integer) Dim CSet As ADODB.Recordset Dim strSQL strSQL = "Exec...
  19. AskMan

    Convert MDE

    Hi, From an Acces Application, I would like to convert an other Acces Application as an MDE file. Thanks for your help SEB
  20. AskMan

    Text Box validation

    Try this Private Sub TexteBox_BeforeUpdate(Cancel As Integer) if TexteBox ... is not valid ... then Cancel = True End If End Sub

Part and Inventory Search

Back
Top