Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
66% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
4 Commented Posts
0 Endorsements
Ranked #327
~83.9K People Reached
About Me

retired programmer

Favorite Forums
Favorite Tags

250 Posted Topics

Member Avatar for ktimov1
Member Avatar for tinstaafl
Member Avatar for tinstaafl
0
7K
Member Avatar for hacgor

Wrong: [code] strSQL = "INSERT INTO stok_sme (Date_time) VALUES ({^" & Format(datdw, "yyyy-mm-dd") & "})" [/code] correct: [code] strSQL = "INSERT INTO stok_sme (Date_time) VALUES (#" & Format(datdw, "yyyy-mm-dd") & "#)" [/code]

Member Avatar for Santanu.Das
0
1K
Member Avatar for Samarth_1

Its very simple actually to create an algorithm for that. Since you already know that its always the second sunday of the month then what you need is to get the first day of the month and determine what days is it. From there you will know how many days …

Member Avatar for Zulu79
0
431
Member Avatar for Nebil

I think there's a problem in your query. 1. First you get all data that has no Bridge Number 2. Second, you join them on the table using the field Bridge Number. There's no way you could join them properly as sql cant identify properly what key should they pair …

Member Avatar for Nebil
0
168
Member Avatar for gil.nickson

the event of the controls were triggered when you changed their values. Try to remove their handler first before changing the values of your controls then put back the handlers once done.

Member Avatar for gil.nickson
0
279
Member Avatar for Start4me

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim numberOfSet As Integer = 5 Dim numberOfSlotPerSet As Integer = 5 Dim historyList As New ArrayList Dim numberDictionary As New System.Collections.Generic.Dictionary(Of Integer, Array) Dim randomGenerator As New Random For i As Integer = 0 To numberOfSet - 1 Dim …

Member Avatar for Minimalist
0
305
Member Avatar for akuikhwan94
Member Avatar for NewCoder_31
0
498
Member Avatar for abelingaw

Here's a good way to do that: 1. Create a table for generated id maintenance. The table should contain fields like... Prefix nvarchar(10) StartingNumber int NumberWidth int Example: Prefix: EMP StatingNumber: 1 NumberWidth: 6 so to generate a new employee id you just have to query the last generated number …

Member Avatar for pritaeas
0
637
Member Avatar for mbowenitj

It seems like an assignment. Put your code here and will see what you got so far. then we will adjust your code from there.

Member Avatar for jireh
0
192
Member Avatar for JimH13

Did you check your installer? maybe the problem is your installer... I just guess. try this out (I dont know if it will work, but have a try please) search in your old pc the 'olepro32.dll' then try to save/copy it in your new laptop... (that's what I did when …

Member Avatar for arndtwc
0
624
Member Avatar for lincoln68504

try to create a usercontrol and put the picturebox and label there then use that as your repository in the grid.

Member Avatar for ryanjayson
0
201
Member Avatar for Anwar_2

make sure to supply the correct number of fields. the best way is to elaborate it one by one. insert into table1(field1,field2,field3) select field1,field2,field3 from table2

Member Avatar for jireh
0
87
Member Avatar for locsin

Put this in Data Environment Initialization [code] Connection1.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\sample.mdb" & ";Persist security Info=False" [/code] hope that would help...

Member Avatar for yokoshima.mur
0
3K
Member Avatar for noobyy

I think you mean is the combo box but not the combo box in the default given. just go to the components then check the Microsoft Windows Components (I think it is sorry no VB here in the cafe) if you can see the combobox then thats it. what you …

Member Avatar for anbarasan
0
230
Member Avatar for jaasaria

if you just remove the data in the listview, and when your listview was not bound in the database, everytime you load the form the data you remove will back again since you dont remove it in the database... how about delete it from the database then reload the loading …

Member Avatar for bluemarine90
0
3K
Member Avatar for swapna7999

hope this qould help you...please see the attached file. you need an installer ODBC driver. this app uses mysql

Member Avatar for choeychoco
0
802
Member Avatar for sky.light.7311

Another coding tip. Instead of. If userName = "sky.light" & password = "qwerty" Then... Or If userName = "sky.light" And password = "qwerty" Then... Use "AndAlso" If userName = "sky.light" AndAlso password = "qwerty" Then... Explanation... If first condition (userName = "sky.light") is true then it will proceed to check …

Member Avatar for Icone
0
313
Member Avatar for yvrej17

DataGridView.Rows.Remove() just supply the necessary parameter. Also check the properties of the gridview.

Member Avatar for artup
0
434
Member Avatar for savedlema

The best way to check is... after this line of code... sSQL = "INSERT INTO Users (Username, Password) " _ + "VALUES ('" & Trim(Me.txtUser1.Text) & "', '" & Trim(Me.txtPass1.Text) & "') " Check/Get the value of sSQL and run it in the sql server. HTH

Member Avatar for savedlema
0
365
Member Avatar for dhatsah

Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim frm As New Form2 frm.Psize = 100 End Sub End Class Public Class Form2 Public Property PSize As Integer Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click MsgBox.Show(PSize.ToString()) End Sub End Class Hope that …

Member Avatar for jireh
0
125
Member Avatar for sean.downes.96

I thinks this is an assignment...'nways, use the dataset to store your data. link the dataset to your grid and pass the dataset in the form you want to open and there fill-up the textboxes from the data in the dataset. HTH.

Member Avatar for jireh
0
142
Member Avatar for veeeeebeeeee

Private Function IsNull(ByVal toBeCheckedObject As Object, Optional ByVal returnObject As Object = Nothing) As Object Try If toBeCheckedObject Is DBNull.Value Then Return returnObject ElseIf toBeCheckedObject Is Nothing Then Return returnObject Else Return toBeCheckedObject End If Catch ex As Exception Throw ex End Try End Function Then use the function to …

Member Avatar for jireh
0
96
Member Avatar for uLp.aArOn

'This is how to search in a data table 'Make sure your condition will get only one record Dim row As DataRow() = Me.InventoryDataSet.tblInventory.Select("<enter your condition here>") if you already have the search then you can now delete the data. If row.Length > 0 Then row(0).Delete() End If Hope that …

Member Avatar for jireh
0
289
Member Avatar for stackOverflow

[QUOTE=jbennet;405164]Micro Electronic Circuits and Electrical Engineering sound as if you would be using the serial port (not one of VB6s strong points) or writing embedded applications for that wouldnt something like C or Assembley be more appropriate?[/QUOTE] I think VB can do that too but I don't know how :icon_cheesygrin: …

Member Avatar for MonishaBala
-3
583
Member Avatar for az_master
Member Avatar for suneel kar

Hi vee! [code] Set db = OpenDatabase(App.Path & "\COLOR.dbf", False, False, "dBase IV;")[/code] I try your code because I also use some dBase but it has an error[COLOR="red"][B] "C:\report\Color.dbf" isn't a valid path. Make sure that the path name is spelled correctly and that you are connected to the server …

Member Avatar for ppappu
0
2K
Member Avatar for diamondw

The problem is in the method Calculate(). The "SelectedItem" property returns an object, which is, on this time, it returns the string you have selected and you assigned it to different type which is double. [CODE] Public Class Form1 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load ComboBox1.Items.AddRange(New …

Member Avatar for diamondw
0
117
Member Avatar for acepeda

... or you should check first the return value of your query before assigning it.

Member Avatar for jireh
0
122
Member Avatar for abhishekkp

[CODE] set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open "c:/mydata/northwind.mdb" sql = "DELETE FROM customers" sq l= sql & " WHERE customerID='" & cid & "'" on error resume next conn.Execute sql if err<>0 then MsgBox.Show "No update permissions!" else MsgBox.Show "Record " & cid & " was deleted!" end if[/CODE] Hope That Helps...

Member Avatar for jireh
0
2K

The End.