Search results

  1. S

    How to move item in listBox up and down access VBA?

    Thanks for the samples. But those are working only for Non-Multiselect listbox , not working if i change listbox property to Multiselect = sample.
  2. S

    How to move item in listBox up and down access VBA?

    My user wants this functionality, even the sorting order does not matter.
  3. S

    How to move item in listBox up and down access VBA?

    I have a list box contains 10 times . I have UP and Down buttons to move item up and down. My VBA works only if i set listbox multiselect property to 'None'. For the multiselect=simple option it throws error like in valid use of null in this line of code sText =...
  4. S

    Recordset is showing as empty But Query wizard Returns Records

    Cool........Works Perfect. Thank you so much.
  5. S

    Recordset is showing as empty But Query wizard Returns Records

    Not specific reason. Is the problem with ADO or DAO?
  6. S

    Recordset is showing as empty But Query wizard Returns Records

    I'm trying to write record set contents to excel. My query runs perfect in access query wizard, but recordset showing as null. My VBA code Dim cnn As ADODB.Connection Dim recordst As ADODB.Recordset Dim strSQL As String Dim strPath As String Dim appXL As...
  7. S

    Combine Firstname and Last Name

    To Combine SELECT MyTable.FirstName & " " & MyTable.LastName FROM MyTable
  8. S

    How to retrieve column data using sql query

    Getting lots of duplicates i.e same records from Q1 and Q2 to Q3. Result seems wrong.
  9. S

    How to retrieve column data using sql query

    Access says syntax error (Missing operator). I guess we need to give some operator between two left joins? I gave AND it is the same error.
  10. S

    How to retrieve column data using sql query

    I'm trying to retrieve data based on the contents of one column. sample table Description EID Basecode ----------- ---- --------- ssdad 1001 S2378797 gfd 1002 S1164478 gfdsffsdf 1003...
  11. S

    How to retrieve column data other than specified in 2 sql queries

    I have a table (tbl1) contains sample records in Basecode column like S2378797 , R1165778 , W1165778 , N1165778 Description EID Basecode ----------- ---- ---------...
  12. S

    How to pass a string in excel vba to access vba

    I'm sorry. But it says the form couldnt find or misspelled. when i add the piece of code you specifid.
  13. S

    How to pass a string in excel vba to access vba

    But how do i call that in access vba
  14. S

    How to pass a string in excel vba to access vba

    I want to pass a string aPath contains path of the active workbook to access vba module or sub. Below is my excel vba code that will open access db form. How do i pass the string value to access vba. Dim aPath, aDbase, aDSource, aTable, exePath As String Dim fileParam As...
  15. S

    How to pass listbox name as parameter in a function access vba

    Galaxiom,Could you please give an example
  16. S

    How to pass listbox name as parameter in a function access vba

    I've a method **querylistboxitems** and i want to call this method in several click events, only difference is listbox,dropdown values change based on the event i call. Public Sub querylistboxitems(lstbox As listbox, dropdown As ComboBox) Dim drpdwnvalue As String drpdwnvalue =...
  17. S

    Empty combobox values when access form loads vba

    It is Unbound control. Yes i'm referring control name. My full code inside the onEnter event Private Sub Combo1_Enter() Me.Combo1.RowSourceType = "Table/Query" Me.Combo1.RowSource = "Select F1 from Dropdownvalues " & _ "WHERE F1 <> 'FM'; " End Sub
  18. S

    Empty combobox values when access form loads vba

    I forgot to change that name in post. Actually it looks like this Private Sub Combo1_Enter() Me.Combo1.RowSourceType = "Table/Query" Me.Combo1.RowSource = "Select F1 from Dropdownvalues ;"
  19. S

    Empty combobox values when access form loads vba

    yeah, OnEnter event of combo1 sets the Rowsource. Private Sub Combo1_Enter() Me.Combo1.RowSourceType = "Table/Query" Me.Select_CM.RowSource = "Select F1 from Dropdownvalues ;"
  20. S

    Empty combobox values when access form loads vba

    Not working, i mentioned like this
Back
Top Bottom