Forum: VB.NET 19 Hours Ago |
| Replies: 3 Views: 118 MSDN Database Walkthroughs (http://msdn.microsoft.com/en-us/library/fxsa23t6.aspx) |
Forum: VB.NET 19 Hours Ago |
| Replies: 2 Views: 183 You can create a view of your table and then use Find & Filter methods available. This has performance benefits over using datatable select methods which then lose table indexing. |
Forum: VB.NET 20 Hours Ago |
| Replies: 4 Views: 168 The record is either added/inserted to the dataset/datatable or it is not. AcceptChanges will only change the rowstate (if it already exists in the dataset) of the record from New to Unchanged and... |
Forum: VB.NET 20 Hours Ago |
| Replies: 2 Views: 112 Im trying to understand your project and a bit confused. Why would you want to extract data from the XML file and store in multiple flat text files? It would seem to me (without know more about your... |
Forum: VB.NET 4 Days Ago |
| Replies: 1 Views: 150 It is much more efficient (specially using access) to store just the file name & path of your file in the database and retrieve that info to use in loading your file. Images take up larges amounts of... |
Forum: VB.NET 4 Days Ago |
| Replies: 2 Views: 188 You dont need to automate Excel at all to output your dataset/datatable to an Excel file. You can use OLEDB to create your file. |
Forum: VB.NET 4 Days Ago |
| Replies: 9 Views: 152 Also Im not sure what the insert line is doing (the first line) you have already added the rows to the table in the first example unless you removed that coding too...
Altogether I would say the... |
Forum: VB.NET 4 Days Ago |
| Replies: 9 Views: 152 Perfect sense, the DataAdapter.Update is what sends the new records to the database. The AcceptChanges isnt needed (its redundent), the call to the Update method automatically changes the records row... |
Forum: VB.NET 4 Days Ago |
| Replies: 9 Views: 152 Take a look at AcceptChanges in the help file, it does not insert data to the database. I cant say much besides that since I dont know what else your code is doing. |
Forum: VB.NET 4 Days Ago |
| Replies: 2 Views: 171 cboMonthC.Items(""))
The parameter should be an interger value not a string |
Forum: VB.NET 4 Days Ago |
| Replies: 1 Views: 120 The footer section is not like the details section and does not list multiple records. Its more for summaries (single rows) type of info. Im not sure of the type of info your looking to display but... |
Forum: VB.NET 4 Days Ago |
| Replies: 9 Views: 152 Ok I'm lost I guess because this is marked as solved. AcceptChanges does not save the data to the database; it instead changes the row state properties of the dataset/datatable making the new records... |
Forum: VB.NET 7 Days Ago |
| Replies: 5 Views: 194 Here are some tutorials for working with VB.Net & Sql Server:
Data Walkthroughs (http://msdn.microsoft.com/en-us/library/fxsa23t6.aspx)
Here is a link dedicated soley to connection strings:... |
Forum: VB.NET 7 Days Ago |
| Replies: 2 Views: 171 Agree with Adapost, not many will help those that at least are not attempting to do the work for themselves. A quick suggestion that may help though, using the proper controls will help make... |
Forum: VB.NET 7 Days Ago |
| Replies: 3 Views: 193 There are several ways you can accomplish this. You can either define there security through coding as mentioned above and then handle it in the project depending on the users level or you can define... |
Forum: VB.NET 8 Days Ago |
| Replies: 4 Views: 201 If you want an inputbox where the user enters the input into the messagebox, then you do have to assign the return value to a string variable. But as Sknake say above, its not needed if it is only... |
Forum: VB.NET 10 Days Ago |
| Replies: 2 Views: 206 Lots of different ways you can do the import but automatting Excel is probably the last one I would pick. First if you are importing directly from an Excel file, there is no reason to automate Excel... |
Forum: VB.NET 11 Days Ago |
| Replies: 3 Views: 245 Its pretty easy, your basically just making a different connection string that attaches to the file rather then to a database. Plenty of examples online showing how to do it. If your unable to figure... |
Forum: VB.NET 12 Days Ago |
| Replies: 5 Views: 283 Nothing really needed, just add a Module file and start creating your public or private subs & functions. If created as public they can be seen and accessed from anywhere else in your project. The... |
Forum: VB.NET 12 Days Ago |
| Replies: 5 Views: 283 Public Subs/Functions are best off put into a module file so that all forms within a project can access these methods. |
Forum: VB.NET 12 Days Ago |
| Replies: 3 Views: 245 Is this being run on a different computer then what it was created? Reference problems like this are usually a case of having a different version of Excel (or no version) then which it was created... |
Forum: VB.NET 12 Days Ago |
| Replies: 1 Views: 196 MSDN Data Walkthroughs (http://msdn.microsoft.com/en-us/library/fxsa23t6.aspx) |
Forum: VB.NET 13 Days Ago |
| Replies: 4 Views: 289 All programming languages are dependent on some type of base class files that it calls for functionality. Dot net attempts to include all in the dot net framework instead of a ton of seperate files... |
Forum: VB.NET 14 Days Ago |
| Replies: 2 Views: 219 Seem to be that it is expecting you to pass an integer value in the c.GetDisplayText function but instead you are passing a tab string. Of course im only taking a guess here since I dont know what... |
Forum: VB.NET 14 Days Ago |
| Replies: 3 Views: 235 None of the parameters even have datatypes defined.... An overflow error is usually caused by trying to force a bad value that doesnt fit into a specific datatype. |
Forum: VB.NET 14 Days Ago |
| Replies: 3 Views: 276 I guess that mostly depends on what info you are displaying. If you want to display multiple records at a time I would use a DGV. If it is only one record at a time then controls such as Labels or... |
Forum: VB.NET 15 Days Ago |
| Replies: 2 Views: 212 The problem is in your connection statement. Your specifying the database twice, each a different way and your not specifying the security. |
Forum: VB.NET 15 Days Ago |
| Replies: 9 Views: 326 Time will automatically be applied as 12am thats why its better to use a between statement to give you all records for the specified day. |
Forum: VB.NET 15 Days Ago |
| Replies: 9 Views: 326 Also dont forget to include the # signs surrounding your date |
Forum: VB.NET 15 Days Ago |
| Replies: 9 Views: 326 Database's hold a DateTime value so its important to include the time such as using a between Todays date at 12:00am and tomorrows date |
Forum: VB.NET 17 Days Ago |
| Replies: 8 Views: 363 The field parameters seem to be correct unless im missing a misspelling somewhere between them. I would start by making two changes and see if you still have the same problem.
01) Convert the... |
Forum: VB.NET 18 Days Ago |
| Replies: 4 Views: 255 You need to take a look at some tutorials on how to program for databases. What you are asking is rather simple but it seems that you dont yet have a grasp on even connecting to a database since your... |
Forum: VB.NET 18 Days Ago |
| Replies: 2 Views: 201 Just to clarify, you want to show a messagebox when the form first loads correct?
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)... |
Forum: VB.NET 19 Days Ago |
| Replies: 8 Views: 363 Can you show your insert statement from the stored procedure? Without seeing it, I'm guessing either the parameters are wrong, missing or misspelled.
Also assuming that DesignationID is an numeric... |
Forum: VB.NET 19 Days Ago |
| Replies: 7 Views: 310 In that example you are still not closing the connection if there is an error. I would add a FINALLY section to that Try/Catch block to close the connection. |
Forum: VB.NET 19 Days Ago |
| Replies: 7 Views: 310 Your error should be tripped on the line actually executing your statement. Therefore all that coding in your class sub should be within a Try Catch Finally block. In the finally section you should... |
Forum: VB.NET 20 Days Ago |
| Replies: 3 Views: 276 You have to point the datagridview's datasource property to the table you are storing the results
DataGridView1.DataSource = myDataset.Tables("myTable")
As to the pictures, this can be done but... |
Forum: VB.NET 20 Days Ago |
| Replies: 1 Views: 224 The following link has many walkthrough examples of how to work with vb.net & sql server. If you still are having a problem, let me know
Data Walkthroughs... |
Forum: VB.NET 24 Days Ago |
| Replies: 5 Views: 390 I actually agree with you. I definitely think OOP has its place but for the most part I limit it to things such as needing multiple instances with different data at the same time. If its a case of... |
Forum: VB.NET 24 Days Ago |
| Replies: 5 Views: 390 |