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
~85.2K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums

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
458
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
280
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
311
Member Avatar for akuikhwan94
Member Avatar for NewCoder_31
0
499
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
641
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
625
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
203
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
90
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
804
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
314
Member Avatar for yvrej17

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

Member Avatar for artup
0
442
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
371
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
130
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
146
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
98
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
291
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
589
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
118
Member Avatar for acepeda

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

Member Avatar for jireh
0
123
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
Member Avatar for lmoe23
Member Avatar for hkdani
0
837
Member Avatar for tgifgemini

when you press the tab key it will jump to the next higher index from its focused control. for example. you have 3 controls and they are text1, text2, command1. if you put first the text1 in the form the tabindex of that control is zero, right? then you put …

Member Avatar for zebnoon
0
3K
Member Avatar for hari12341

Well I've try also the code below: [code] Dim openForm As Form = Nothing For index As Integer = My.Application.OpenForms.Count - 1 To 0 Step -1 openForm = My.Application.OpenForms.Item(index) If openForm IsNot Me AndAlso Not TypeOf openForm Is DevExpress.Utils.Win.TopFormBase Then openForm.Close() openForm.Dispose() openForm = Nothing End If Next [/code] but …

Member Avatar for sathish_ahs10
-2
2K
Member Avatar for locsin
Member Avatar for leiron16

I think you should make first an Algo on how to compute an employees payroll. If you have an algo you sure can make a functions that will compute the employees record. If the records of an employee comes from different databases then open them all and then put them …

Member Avatar for abelingaw
0
368
Member Avatar for DhruvaRai

[quote] I would like the user to be able to simply type 0900 and VB code to convert it to 09:00. Is this possible? When they type 0900, I would like the cursor to move to the next field automatically rather than having to press the Tab button on the …

Member Avatar for peter_budo
0
2K
Member Avatar for gms_019
Member Avatar for koolsamjust4u

yup please specify waht db you are using and what connection you use, is it either DAO or ADO.

Member Avatar for SANJAY.DESHMUKH
0
2K
Member Avatar for tgifgemini
Member Avatar for kikilala

I revised a little bit your code... What line does the error appear? sorry got no vb6 on my machine :( [code] Private Sub cmdRead_Click() Dim target As String lstName.Clear If txtIdTag.Text = vbNullString Then MsgBox "You must enter a tag number", VbInformation txtIdTag.SetFocus Exit Sub End If datStudent.Recordset.FindFirst "id …

Member Avatar for abu taher
0
122
Member Avatar for Vish_All

[QUOTE=kalpanamasare;412413]HI, i hv .dsr reports which r created in crystal report 8 version.Now in my system i m hving version 11. I m able to open that report. can u plz give me solution. Thanks kalpana[/QUOTE] Post your own problem not here that looks like a reply... sorry no offense …

Member Avatar for rathisamal
0
1K
Member Avatar for roachae

Basically the function/method WriteToDebugLog(ByVal str1 As String) do not accept an array data.

Member Avatar for vb5prgrmr
0
116
Member Avatar for xirosen

You have to make a new control. a combination of combox, listview, and other controls you needed. In our company we have that control... add a control that inherits the combobox (in dotnet) then we call a form (new form) were we add a litview control during runtime. so basically …

Member Avatar for xirosen
0
166
Member Avatar for Israelsimba

OK I get your point. It should be done like this... [code] With ri .ActiveConnection = deSub.conn .LockType = adLockOptimistic .Source = "select * from cooperatesubs" .Open Do Until .EOF .Edit .Fields("copiesremaining") = .Fields("numberofcopies") - .Fields("copiesout") .Update .MoveNext Loop .Close End With [/code] [B]Question:[/B] Are you sure with your query …

Member Avatar for codefixer
0
154
Member Avatar for bdrkb
Member Avatar for ankush.mukherje

there are other ways too, like have a list of softwares you in the listview then drag and drop it in the listbox maybe.. then simple all data in the listbox were the only selected ones. :D

Member Avatar for ankush.mukherje
0
140
Member Avatar for jlego

How did initialized the form before calling the isdisposed() function? Can you put it here the whole code of that function you are created.

Member Avatar for kvprajapati
0
146
Member Avatar for tqmd1

Please add dot text in your code... [code] cmd.Parameters.AddWithValue("@desc", IIf(Len(Me.TxtDes.Text) = 0, "Null", trim(Me.TxtDes.Text))) [/code]

Member Avatar for jireh
0
116
Member Avatar for xairylle

for text/string datatype use single quote [code] "Select * From MyTable Where CustomerName = '" & searhname & "' " [/code] for number datatype no single quote [code] "Select * From MyTable Where CustomerName = " & searhname & " " [/code]

Member Avatar for jireh
0
175
Member Avatar for JohnPhilipps

In the above suggestions does it solve your problem? You must be aware also on what type of event you did put your code.

Member Avatar for jireh
0
129

The End.