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 wOOdy-Soft 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: jpinto
  • Content: Threads
  • Order by date
  1. jpinto

    Passing a value from one form to another

    Hello, I've a form that when the user clicks on a button opens a new form with a treeview with data for the user to select. After the user selects the data and clicks OK button I want to pass the value of the row selected to a field from the first form. I'm using a variable to put the value of...
  2. jpinto

    Treeview Question

    I've a treeview on my form that as a Parent node "Familia" and a child node "Ocorrencias". Here's the code: Private Sub frmListaOcorrenciasTree_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim x, y As Integer Dim NomeFamilia...
  3. jpinto

    Problem updating a record

    Hi, I've the following code used to update a record on my Access database: con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=""C:\Programaçao\Visual Basic\Inapal\ReportIt\ReportIt.mdb"";" con.Open() sSQL = "SELECT * FROM [Utilizadores] WHERE (User= '" & Utilizador &...
  4. jpinto

    Selecting records between two dates

    Hello, I'me trying to select the records that are on the database with the field 'Data" between two dates that are inserted into two fields: "DeData" and "aData". I've the following code but I'm getting an error on my SQL statment: Private Sub DeData_ValueChanged(ByVal sender As System.Object...
  5. jpinto

    Mouse hover DataGridView

    Hello, I want to change the cursor type when the mouse goes over a certain column in a dataview. I've the following code: Private Sub DataGridView1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGridView1.MouseHover If DataGridView1.CurrentCell.ColumnIndex...
  6. jpinto

    Display sum of records

    Hello, I need to display on a form, on a textbox, the value of a sum of records that is on a Query on my database. I've the following code: con2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=""C:\Programaçao\Visual Basic\Inapal\ReportIt\ReportIt.mdb"";" con2.Open()...
  7. jpinto

    DataGrid cursor change

    Hello, I've a DataGrid on a form and I need to change the cursor from Default to Help when a user moves the mouse over a certain column of the DataGrid. I've the following code but is not working: Private Sub DataGridView1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
  8. jpinto

    Datagrid cell mouse click

    Hello, I've a DataGridView on a form and I need to catch the mouse click event on a specific cell so that I can display more information about the value showned. For other words, if a user clicks on a certain cell of the datagrid, I want to open a new dialog form to show more information about...
  9. jpinto

    Reference to a field after record search

    Hello, I've the following code to search a record in the database: Public Class LoginForm1 Dim da As OleDb.OleDbDataAdapter Dim ds As New DataSet Dim con As New OleDb.OleDbConnection Dim sSQL As String Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...
  10. jpinto

    Datagrid refresh after record insert

    Hello, I've the following code to insert a record into an MS Access database when clicking on Button1: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data...
  11. jpinto

    Add a new record in VB 2005

    I'm new to VB 2005. I've programmed for a while in VB 6 mas now that I started with VB 2005 I've been a little lost! I've the following code to add a new record to an MS Access database: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  12. jpinto

    Combo box problem

    I've a combo box on a form that is binded to an Access table. For instance, lets say the combo displays "White", "Yellow", "Red" (on this order) I open the drop down list and I select "Red". When I open the drop down list again, the combo displays ""Red", "Yellow" and "Red"! What can be the...
  13. jpinto

    Google Adsense Ads

    Hello, Does annyone uses on their site or blog ads from Google Adsense? I would like to know how has been your experience with this system. Thanks in advance, João Pinto www.1000headlines.com
  14. jpinto

    Writing on an access database

    I've the following code: <% Dim cnnSimple ' ADO connection Dim rstSimple ' ADO recordset Dim strDBPath ' path to our Access database (*.mdb) file Dim MySQL Dim source strDBPath = Server.MapPath("db/rssdb.mdb") Set cnnSimple = Server.CreateObject("ADODB.Connection") cnnSimple.Open...
  15. jpinto

    Closing open Forms

    Hello, I've a module with the following code: Public Sub close_form(option As String) Dim frm As Form For Each frm In Forms If (frm.Name <> option) And (frm.Name <> "Startup") Then Unload frm End If Next End Sub This is used when a user clicks on a button at the Startup...
  16. jpinto

    Incorrect Data Type?!?

    Hello, I've the following code: TotalVendaTable.RecordSource = "SELECT * FROM Vendas WHERE ((Vendas.Data > '" & DeData & "' ) AND (Vendas.Data < '" & AData & "')) ORDER BY Vendas.Data ASC" TotalVendaTable.Refresh where I receive error nr. 3464: "Incorrect Data Type in criteria Expression"...
  17. jpinto

    Sum Field from Recordset

    Hello, I've a recordset displayed on a Data grid. I'm trying to sum the values of a field so that I can have the total sum of the entire recordset displayed on a field. I've tryed the follow: VendaTable.Recordset.MoveFirst Do Until VendaTable.Recordset.EOF QtdTotal = QtdTotal +...
  18. jpinto

    Passing a value from one form to another

    Hello, Probably this is very simple but I'm stuck here with this problem: On a form I've a text box with a value that I want to assign to a public variable so that I can use it in another form. I've made this: 1st form: refer = ReferenciaInput 2nd form: Public refer As String Private Sub...
  19. jpinto

    Data Environment Missing

    Hello, I'm trying to design a report in VB 6 but I can't find the Data Environment. It doesn't appear in Project or in Project->Components->Designers. Can anyone help me please? Thanks, João Pinto
  20. jpinto

    Inputing Currency values on a Text Box in €€€'s

    Hello, Can annyone tell me the best way of inputing currency values in €'s in a text box? I tryed the maskedit control but it doesn't accept €'s. Thanks, JP

Part and Inventory Search

Back
Top