4,901 Posted Topics

Member Avatar for YA RAMSAMKER

What is the current definition of the field? And if the numbers are off because you deleted the field from your program then how is it auto number?

Member Avatar for Reverend Jim
0
138
Member Avatar for rasheedraj

You haven't provided us with the relevent code. You call connection, Recordset (a bad name for a sub, by the way) and recexist. You haven't told us what line is generating the error. You haven't even bothered to ask an actual question. Please take the time to provide some information …

Member Avatar for Reverend Jim
0
70
Member Avatar for a.sithick
Member Avatar for a.sithick
0
844
Member Avatar for Gen_2

What is the layout of the new table? There is always a way to combine tables. The trick is to combine them in a way that makes sense. If you just want a table of people regardless of whether the people are students or faculty then you could SELECT * …

Member Avatar for G_Waddell
0
247
Member Avatar for xn hunk
Member Avatar for debasisdas

Any sufficiently advanced technology will eventually be used as a cat toy.

Member Avatar for James_28
8
17K
Member Avatar for rithish

How about int factorial (int n) { return n == 0 ? 1 : n * factorial(n-1); }

Member Avatar for Reverend Jim
0
154
Member Avatar for natsume57

That could actually be Do Until rcdset.EOF and it would help if we knew what line was causing the error.

Member Avatar for Reverend Jim
0
1K
Member Avatar for Kent55

Have you considered a loop? That will make the code independent of the number of words and definitions. 'using MIN ensures you don't get an error if one array is longer than the other. 'checking TRIMmed values eliminates blank entries For i As Integer = 0 To Math.Min(UBound(Keywords), UBound(Definitions)) Dim …

Member Avatar for Reverend Jim
0
304
Member Avatar for JimN

If you are able to get keyboard functionality from the previous post you might be able to run system restore by executing rstrui.exe

Member Avatar for gerbil
0
788
Member Avatar for it mansoor

For the record, rubberman's post in the deleted thread which bears repeating was > You have 4 problems here. > >You posted this twice. >You posted both to the VB.NET, not the C forum. >You didn't ask a question. >We don't do your homework for you. >:-(

Member Avatar for Deep Modi
-2
172
Member Avatar for mehran.abdi.9

I suggest you start by reading a book on vb.net and a book on SQL. When you have specific questions feel free to ask.

Member Avatar for mehran.abdi.9
0
320
Member Avatar for erson212
Member Avatar for raju_6
Member Avatar for Patrick_3

Add this code Private Sub TextBox1_DragEnter(sender As System.Object, e As System.Windows.Forms.DragEventArgs) Handles TextBox1.DragEnter If e.Data.GetDataPresent(DataFormats.FileDrop) Then e.Effect = DragDropEffects.All End If End Sub Private Sub TextBox1_DragDrop(sender As System.Object, e As System.Windows.Forms.DragEventArgs) Handles TextBox1.DragDrop If e.Data.GetDataPresent(DataFormats.FileDrop) Then Dim files() As String files = e.Data.GetData(DataFormats.FileDrop) TextBox1.Text = My.Computer.FileSystem.ReadAllText(files(0)) End If End Sub …

Member Avatar for Reverend Jim
0
3K
Member Avatar for COKEDUDE

Those macros are obscene and should never be used in code that anyone else ever has to work with. They may make the code shorter but they obscure its meaning. They also use variables that are not passed to the macro. Blecch!

Member Avatar for Ancient Dragon
0
264
Member Avatar for roguexe

Read the file names into a list. When you want to display a random picture, generate a random index number from 0 to FileList.Count - 1. If you use the Tag property of the PictureBox to store the currently displayed index then you can avoid a separate global variable. Your …

Member Avatar for Reverend Jim
0
897
Member Avatar for NardCake

@mike - The reason I prefer an IDE like Visual Studio over managing code and makefiles by manually creating config files and compiling/linking via command line is because I prefer coding to managing code. I looked at your example of git on the previous page and my first (and second …

Member Avatar for NardCake
0
848
Member Avatar for jbyal1

Try replacing your loop header where you populate the listbox with For intFill = 0 To 9 You may be reading too many lines into your arrays. You can verify by putting a breakpoint at line 32 and checking the array bounds.

Member Avatar for Reverend Jim
0
123
Member Avatar for sukanya.seluka

You haven't given us much to go on. I assume this application involves a database. If so you haven't said what type. Typically, if you want to get the next available value in a field you use the MAX function, then add one. Also, you'll have to get the number …

Member Avatar for sukanya.seluka
0
168
Member Avatar for Grazel

That's not code. That's just a string. Please show us your code and include the error message (if any) and the line causing it.

Member Avatar for Reverend Jim
0
113
Member Avatar for Gen_2

You should put single quotes around string (character) values and not around numeric values. You didn't include your field definitions for the database table so we can't tell which values are which. For example, INSERT INTO myTable (idnum) VALUES('123') where idnum is defined as INT may cause a problem because …

Member Avatar for Gen_2
0
436
Member Avatar for johnnyboy123

I'll assume that con.Open() was successful due to the lack of an error message. Have a look at [this example](http://www.daniweb.com/software-development/vbnet/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks) to see how to use parameterized queries with OleDB. You are not using the correct format. While it is possible to have an INSERT where you don't specify the field …

Member Avatar for Reverend Jim
0
470
Member Avatar for obeng.adomakobismark

Is there a question? How does the code relate to the title? A datareader is not used to insert data into a table.

Member Avatar for Reverend Jim
0
192
Member Avatar for OsaMasw

Are you trying to import the data from within Excel or are you doing it from another environment such as C, C++, vb.net, vbScript, etc.? Once we get more information we can move this thread to the appropriate forum and proceed from there.

Member Avatar for Stuugie
0
232
Member Avatar for Kent55

You should not be declaring a separate variable for each keyword and definition. That's what a dictionary (also known as an associative array) is for. Private myDic As New Dictionary(Of String, String) Then you assign words and definitions as Do while more words and definitions read next word from the …

Member Avatar for Reverend Jim
0
349
Member Avatar for Amiet_1

The short (and not very useful) answer is "it depends". For vb.net apps that I write for my own use, I do not bother to create an installer. I just copy the the entire project folder to an "apps" folder and run the app directly from the bin\release folder. This …

Member Avatar for Amiet_1
0
319
Member Avatar for Reverend Jim
Member Avatar for vokselbama

First of all, that's not a question. Second of all, we don't do your homework for you. And lastly, read this first before posting questions.

Member Avatar for Reverend Jim
-1
132
Member Avatar for vokselbama

First of all, that's not a question. Second of all, we don't do your homework for you. And lastly, read [this first](http://www.daniweb.com/software-development/vbnet/threads/424836/please-read-this-before-posting) before posting questions. I see this is the second post in a row from you saying "do this for me". You won't learn anything by getting others to …

Member Avatar for Reverend Jim
-1
135
Member Avatar for Begginnerdev

I liked the post. Simple examples that illustrate one or two (at most) techniques are the best. I learned ADO as an access technique when I started developing DB apps years ago. Recently I stumbled upon an article which reflected my opinion on Microsoft's data access philosophy. It stated (in …

Member Avatar for Reverend Jim
2
899
Member Avatar for helen eyob

It would help if you showed us the code that you are using. Please provide the exact query. qry = "INSERT INTO mytable (fld1,fld2) " & " VALUES(" & TextBox1.Text & " ," & TextBox2.Text & ")" probably won't help because the actual query depends on the values from the …

Member Avatar for obeng.adomakobismark
0
251
Member Avatar for Deep Modi

You can try [Perry's ID3 Tag Library](http://glassocean.net/perrys-id3-tag-library/). It is a free, open-source ID3v1 and ID3v2 tag parsing utility for MP3 files.

Member Avatar for Reverend Jim
0
196
Member Avatar for Jaid_1

If you declare a variable in a function that has the same name as a global variable then the local variable masks or overrides the global one. If you need to reference the global variable from within the function you can refer to it as Me.varname. Public Class Form1 Private …

Member Avatar for Reverend Jim
0
83
Member Avatar for Kent55

You can create a dictionary to hold the keywords and definitions. Dim Words As New Dictionary(Of String, String) The key is the word and the value is the definition. Then create a list from just the words. To randomize the list in the display you can do while the list …

Member Avatar for Reverend Jim
0
283
Member Avatar for Teddi_1

I can't help you but this just reinforces what I believed all along. The only secure place to store stuff is locally. If you store in the cloud then you risk losing it. Granted, you can lose it locally, but at least you control the level of backup and the …

Member Avatar for Reverend Jim
0
433
Member Avatar for jsherm101
Member Avatar for Laura530
0
535
Member Avatar for JaneLewis1615

You need to declare the number of tokens at the class level to prevent it from going out of scope (and losing its value). You can initialize it to 100 either in the form load event or in the handler for a **Reset** or **New Game** button (if you have …

Member Avatar for asarchit65
0
1K
Member Avatar for Grazel

You have to create the object by Dim appXL As New Excel.Application **CreateObject** is how you would do it in vbScript, not vb.net. See [here](http://www.daniweb.com/software-development/vbnet/code/464769/export-listview-to-excel-spreadsheet) for an example. You also have code that appears outside the Sub/End Sub (Err_Handler:). Not good. I assume that somewhere you have an **On Error …

Member Avatar for asarchit65
0
5K
Member Avatar for swilcox1110

If you use proper indentation then the solution becomes more obvious. Dim decCharges As Decimal Dim intHours As Integer Const decA As Decimal = 9.95D Const decB As Decimal = 14.95D Const decC As Decimal = 19.95D inthours = CInt(txtHours.Text) If radA.Checked = True Then If intHours >= 10 Then …

Member Avatar for swilcox1110
0
132
Member Avatar for Mike_danvers
Member Avatar for Mike_danvers
0
278
Member Avatar for Mike_danvers

Keep in mind that chat is not the best option for getting help for anything other than the simplest problems.

Member Avatar for Mike_danvers
0
217
Member Avatar for The Dude

If you enjoyed Face Off (or even if you didn't) you have to watch [The Nostalgia Critic review](http://thatguywiththeglasses.com/videolinks/thatguywiththeglasses/nostalgia-critic/41915-faceoff)

Member Avatar for Reverend Jim
0
279
Member Avatar for Dani
Member Avatar for Start4me

Instead of trying to build this into your program you might consider a program like Qliner Hotkeys. I've been using it for years. You can assign the program to a hotkey (like WINDOWS-F12) and when that hotkey is pressed, the program 1. starts and comes to the front if it …

Member Avatar for Reverend Jim
0
279
Member Avatar for gabrielcastillo

I can sympathize with people for whom English is a (distant) second language. They want help but have trouble describing the problem in an unfamiliar language. Simple communication is difficult enough. Technical communication is near impossible. However, I would rather put the onus on the person posing the question to …

Member Avatar for Reverend Jim
0
235
Member Avatar for Start4me

As is typical with sample code/controls like the one referenced in the previous post, it is written in an older version of Visual Studio. Loading it into Visual Studio 2010 (which is what I am using) results in nothing usable. There are also no instructions on how to rebuild the …

Member Avatar for Reverend Jim
0
2K
Member Avatar for Riteman
Member Avatar for Reverend Jim
0
200
Member Avatar for kenasco

What is your question? Does your code work? If not, are you getting an error? If so then what is the error and what line is causing it? If you are just asking for suggestions then I suggest you use parameterized queries. You can find an example [here](http://www.daniweb.com/software-development/vbnet/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks) in the …

Member Avatar for Reverend Jim
0
160
Member Avatar for Rui Lin

Try qry = "SELECT Product_id, Name, Description, Quantity, " & " Unit_Price, Quantity*Unit_Price AS TotalCost " & " FROM myTable"

Member Avatar for Reverend Jim
0
104

The End.