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 dencom 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 jmasm

  1. jmasm

    Getting data from a subform?

    Thanks! It worked with few changes.
  2. jmasm

    Getting data from a subform?

    I'm tryng getting data from a subform to the Main Form. I'm using this code: Me.data = Forms!nameSubform!dataname This does not work. Any help please!!!
  3. jmasm

    filter to display records MS ACCESS 2010???

    Works with only one criteria. When I try to use more then one criteria with this code: DoCmd.OpenForm "Formname", , , "Data1 = " & "'"& Me.Datacriteria1 &"'" And "Data2 = " & "'"& Me.Datacriteria2 &"'" When I run the program the following error appears: Run-Time error '13' Type mismatch
  4. jmasm

    The Best Technique To create Forms With Many Fields Fast

    you can do it with a Flex grid. If you want to see an example search on google this ppt "VBA ADO programing in ACCESS.ppt". I hope it helps you
  5. jmasm

    How to create a form based on a query results in vba

    You need the form for what ?
  6. jmasm

    How to create a form based on a query results in vba

    How to add a form to a query step by step 1 - Create a blank form. 2 - Open the form in mode view. 3 - Form disign tools select design then Property sheet. 4 - In Property sheet select Data Record Source. 5 - Select the query or table that you wish. In a form create a button then create this...
  7. jmasm

    filter to display records MS ACCESS 2010???

    Create a filter to display only those records that have the criteria required? I'm using this code: DoCmd.OpenForm "Formname" Forms!Formname.Form.Filter = "Data = " & Me.Datacriteria Forms!Formname.Form.FilterOn = True When I run the program the following error appears: Run-Time error '2448'...
  8. jmasm

    Form for display multiple records from a database (VBA)???

    The DAO is not a solution!!! I Tried to do everything but nothing worked. Can you explain how you can create a new record (row) in a form to display data from the database using the ADO? When looking for a way to solve my problem, I found a way to show the data from the database through a...
  9. jmasm

    Form for display multiple records from a database (VBA)???

    The DAO works only for ACCESS 2007 or earlier. I'm using ACCESS 2010, where the code only works with ADODB. Can you explain with an example or step by step for ADODB. Thanks!!!
  10. jmasm

    Form for display multiple records from a database (VBA)???

    I do not understand! Can you explain with an example or step by step. Thanks!!!
  11. jmasm

    Form for display multiple records from a database (VBA)???

    yes I could use a pass-through query but I'm not reading all the records from a table. As you can see in the code that I use I have a where clause. This clause is coming from a text box. This I can do to a single record with the code I have. When I try to view multiple records, the form only...
  12. jmasm

    Form for display multiple records from a database (VBA)???

    I am trying to create a VBA code that allows me to display data from a SQL database. I'm using this code: Private Sub Form_Open(Cancel As Integer) Dim i As Integer Dim rsPDM As ADODB.Recordset Dim strPDM As StringSet rsPDM = New ADODB.Recordset strPDM = "select * From PDM Where Ugf = 'Centro...
  13. jmasm

    creating a vba code to display data in a form access?

    works but can not submit data in a form. Can you tell me how I can put the data in the form (VBA). I am using the following code: Do While Not rsPDM.EOF If i = DLookup("ID", "PDM", "ID =" & i) Then Me.ID = rsPDM!ID rsPDM.MoveNext End If i = i + 1 Loop In...
  14. jmasm

    creating a vba code to display data in a form access?

    My query is this: SELECT ID, Municipio, DataEntrAFN, Dataactual, Atualidade, Ugf FROM PDM WHERE (Ugf = [Forms]![Form13]![UGF]) My database is a SQL database that i access by ado.
  15. jmasm

    creating a vba code to display data in a form access?

    I created a query, the form. After this step only made mistakes. I tried to assign the data (UGF) directly in the query - error I tried to use a when statement using the text box - error I tried to use a macro - error Can You send an example to put me on the right track.

Part and Inventory Search

Back
Top