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: *

  • Users: jbpez
  • Order by date
  1. jbpez

    GetCurrentProcess.Id vs GetCurrentProcessId API

    System.Diagnostics.Process.GetCurrentProcess.Id matches the value in Windows Task Manager. I figured it out. In VB6 I declared as a long: Private Declare Function GetCurrentProcessId Lib "Kernel32" () As Long But in VB.NET I need to change it to integer: Private Declare Function...
  2. jbpez

    GetCurrentProcess.Id vs GetCurrentProcessId API

    How is the "System.Diagnostics.Process.GetCurrentProcess.Id" different from the GetCurrentProcessId API (Kernel32.dll)? I'm trying to convert code from VB6 to VB.NET and supposedly GetCurrentProcess.Id (.NET) is the equivalent of GetCurrentProcessId API, but it doesn't work. I placed both in my...
  3. jbpez

    How to close Excel from Access using VBA?

    Yes, go to Tools/References and click on Microsoft Excel 9.0 Object Library, or whatever version you have. John Borges
  4. jbpez

    Having trouble making it work

    Have the button click event create a SQL INSERT INTO string based on the combo data. John Borges
  5. jbpez

    Multiple combo box selection within a form select record from results

    I agree with PHV, a listbox would be ideal for your situation. John Borges
  6. jbpez

    Change a Summary Filed's Name

    You could create your own sum of 30% formula and name it whatever you want. The formula would be something using the following Sum(field,fieldcondition) John Borges
  7. jbpez

    formulafield cannot be summarized.

    what output does this formula generate? John Borges
  8. jbpez

    FileSystemObject and open files

    Try opening the file while already open and get the error number. Then create an error handler for that error number that tells you that the file is open. John Borges
  9. jbpez

    Multiple combo box selection within a form select record from results

    The query string should be, strSQL = "SELECT * FROM Compounds WHERE StockID = " & Me.CboStocks.Value & " AND SpecNumber = " & Me.CboSpecs.Value I hope this helps John Borges
  10. jbpez

    In vba module - problems creating odbc connection string

    Try for connection string something like this, cnn.ConnectionString = "Provider=OraOLEDB.Oracle;Data Source=dbname;User Id=admin;Password=pass;" John Borges
  11. jbpez

    Connecting to Access Database and running Queries

    You need to add Dim ConnString as string with the other variables. On your connection string "Data Source=Library.mdb" should be a path like "C:\something\Library.mdb" Also, I noticed some of your field names have spaces. So, make sure you place them in square brackets [Book Author] [Book...
  12. jbpez

    Connecting to Access Database and running Queries

    All of the code would go under the following, Private Sub NameOfYourButtonHere_Click() 'code here End Sub Please explain, I'm a bit confused. John Borges
  13. jbpez

    filtering from input question

    I tried the following Like "[a-z]#[a-z] #[a-z]#" and it works as it should. Make sure 'Like' is included and don't forget the double quotes. John Borges
  14. jbpez

    ASP server side radio button problem

    I think each radio button should have a different name. John Borges
  15. jbpez

    Connecting to Access Database and running Queries

    Try something like this: Dim ADOCn As ADODB.Connection Dim adoRS As ADODB.Recordset Dim sSQL As String Dim sWhere as string Dim varValue as variant ConnString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=c:\YourDB.mdb;" Set ADOCn = New ADODB.Connection ADOCn.Open ConnString Set...
  16. jbpez

    Continuous form checkbox problem

    If the query which your form is based on only shows 'Complete' = False or 'ExpectedCompletionDate' <= Date, then create a recordset of the query and check if there are any records, if not then the form can be closed. John Borges
  17. jbpez

    How to Delete Selected Records From A List Box

    Try something like this, Dim strSQL as string Dim x as long Dim lngTicketID as long For x = 0 To Me.GroupBox.ListCount - 1 If Me.GroupBox.Selected(x) = True Then lngTicketID = Me.GroupBox.Itemdata(x) strSQL = "DELETE * FROM tblTickets " strSQL = strSQL & "WHERE TicketID=" &...
  18. jbpez

    Format date to upper case

    Try: UCase(Format(Date, "ddmmmyy")) John Borges
  19. jbpez

    Changing focus from subform to form

    Look at FormName.SetFocus John Borges
  20. jbpez

    sendkeys won't keep sending keys

    My guess is that your code is sending keys, but it is sending them too soon, before your application is fully ready. Try to add code to wait a few seconds to make sure the application is fully ready. Something like this, WshShell.Sleep 5000 this will wait for 5 seconds. Place it before the...

Part and Inventory Search

Back
Top