602 Posted Topics

Member Avatar for eileenc87

Hi, How exactly are you modifying the DateTime? Are you using DateAdd or are you just changing the time "manually". It looks to me that either the modified date is in a format that the datetime picker can't understand and it is defaulting to January 1 1900. Or that your …

Member Avatar for G_Waddell
0
153
Member Avatar for G_Waddell

Hi All, I'm working on a web app in ASP.net with VB.Net on Visual Studio 2010 (.Net Framework 4). I'm trying to use a datarepeater class to display results from a query on the web page so I coded away exactly as I used to in Visual Studio 2008. However, …

Member Avatar for khadakbist
0
164
Member Avatar for CrashanBurn

Hi, I would never use an access database: PROS 1. Nice interface CONS 1. Microsoft do not recommend the use of Access for more than 5 users at a time. 2. SQL Server Express is Free 3. SQL server Express is more robust 4. SQL Server Express supports many of …

Member Avatar for CrashanBurn
0
204
Member Avatar for Joshua Kidd

Hi, Just taking a guess here but what does colProcesses.Count actually return? How about: [CODE] If colProcesses.Count > 0 Then ToolStripStatusLabel1.Text = "FSX Status: Connected" Else ToolStripStatusLabel1.Text = "FSX Status: Not Connected" End if [/CODE] OR [CODE] If colProcesses.Count IsNot Nothing then ToolStripStatusLabel1.Text = "FSX Status: Connected" Else ToolStripStatusLabel1.Text = …

Member Avatar for G_Waddell
0
121
Member Avatar for G_Waddell

Hi I had written an in VB.net that took addresses from a database put them into a csv file then took the csv file data and performed a mail merge in Word to allow the user to print them out on to an Avery L7163 label sheet. The app was …

Member Avatar for G_Waddell
0
413
Member Avatar for Gazzmonkey

Hi You've defined your SQL insert statement but I don't see you doing anything with it. For insertting records to a database I just do something like this as I find it easier: (actually I'd use a SQL Database with a stored procedure as it is more secure and SQL …

Member Avatar for Gazzmonkey
0
97
Member Avatar for davydick

Hi, You've posted this in the VB.net forum instead of the VB6 one. Err... I'm a bit rusty with VB6 are you using the package and deployment wizard? It does look like your app needs a file that comes with VBE but what one? What references do you have in …

Member Avatar for G_Waddell
0
229
Member Avatar for WHchaz1027

Hi I'm 100% sure on this but as .visible is a boolean you maybe able to do something like this: [CODE] for each Row in MyDatagridview.Rows if Row.Visible = false then Row.visible = true next [/CODE] The question is does the .visible let you "read" from it or only set …

Member Avatar for G_Waddell
0
82
Member Avatar for G_Waddell

Hi All, I have an application written in VB.net for batch print jobs. As part of the application, the user selects two printer trays to use to print the batch to (one plain paper the other coloured for coversheets and batch seperators) I had this working until we upgraded our …

Member Avatar for G_Waddell
0
231
Member Avatar for tendaimare

Try this link.... [URL="http://www.aspdotnetfaq.com/Faq/fix-error-Failed-to-generate-a-user-instance-of-SQL-Server-due-to-a-failure-in-starting-the-process-for-the-user-instance.aspx"]http://www.aspdotnetfaq.com/Faq/fix-error-Failed-to-generate-a-user-instance-of-SQL-Server-due-to-a-failure-in-starting-the-process-for-the-user-instance.aspx[/URL]

Member Avatar for Netcode
0
117
Member Avatar for mogaka

hi, Use Listview.items.count to loop through the items in the list view: [CODE] dim MyTotal as Double dim i as integer for i=0 to Listview1.items.count-1 Mytotal += Listview1.items(i).Value next [/CODE]

Member Avatar for G_Waddell
0
199
Member Avatar for markdean.expres

[URL="http://www.connectionstrings.com"]http://www.connectionstrings.com[/URL] Shows you how to connect to all types of database via ADO, ADO.net etc. For Access, ensure that: 1. what ever user the Website runs under can access the file on the remote computer over the network. 2. The File is not going to be locked by another user …

Member Avatar for cooljyothi
0
119
Member Avatar for b9678123

Hi can you post your code? On your page load are you using the page postback on the onload event? If not then the page will execute the load instructions as the order the page renders in during a post back is 1. Reload page 2. process postback routine. e.g …

Member Avatar for G_Waddell
0
267
Member Avatar for starlight849

Hi, Do you want to create a blank record for the user to Edit each time a non matching item is in Table 2? Where are you actually populating the datagrid from? Table 1? A query run on both? Maybe you could post what code you have just now?

Member Avatar for G_Waddell
0
220
Member Avatar for planem997

The Intellisense should be putting a wavy line under where your syntax is wrong or may lead to issues

Member Avatar for G_Waddell
0
162
Member Avatar for lucaazori

Try: [CODE] SELECT int_Exa, COUNT(*) as nbrTest FROM TEST GROUP BY int_Exa [/CODE] The result set should will list each exam in the TEST table with a count of the number of each. If you want a count of [B]ALL[/B] exam (not just the ones that have tests,) then try: …

Member Avatar for lucaazori
0
116
Member Avatar for kashy!

Hi, I've never encountered this issue but it would seam to me to be to do with your projects signing settings. Right click on your project in the sooution explorer and you will get an option to open the project properties screen (alternatively Project Menu, Properties). Depending on which version …

Member Avatar for kashy!
0
653
Member Avatar for G_Waddell

Hi All, I'm using VB.net to create a batch of word documents using the Microsoft Office OpenXML SDK. The documents are made up of a header and the main body which is made up of a table. I can sucessfully create the table in the main body. The issue is …

Member Avatar for G_Waddell
0
259
Member Avatar for zulhimi89

Hi, You want to store a colour value in your DB? It really depends on what you are using the colour for, you can store it as a string in Hex format e.g. 000000 (black), FFFFFF (white) or in RGB 0,0,0 (black), 255,255,255 (white) etc or even just "Black" or …

Member Avatar for zulhimi89
0
71
Member Avatar for G_Waddell

Hi all, I'm writing an application that imports and tidy up address data into a cleaned, deduped excel workbook ordered in rows with each column as an address field. One of the issues I've ran into is that we sometimes get a workbook where the multiple address fields are held …

Member Avatar for Baldur Levesque
0
255
Member Avatar for anupama96

Hi You should post some of your code, you're refering to an object that the code does not know exists or understands. Posting code samples inside the "CODE" "/CODE" tags will help others see what you are doing and maybe identify where it is going wrong. Have you tried going …

Member Avatar for anupama96
0
100
Member Avatar for Jollyyy100

Hi You should do something like this: [CODE] sub EmployeeSearch dim EmployNo as integer dim mySQL as string EmployNo = cint(MyTextbox.text) mySQL = "SELECT * FROM tblEmployee WHERE (EmployeeNo =" &EmployNo &")" 'run query on db and get result. [/CODE]

Member Avatar for Jollyyy100
0
2K
Member Avatar for webber1

Hi, I'd do a double check here if I were you: [URL="http://www.connectionstrings.com"]http://www.connectionstrings.com[/URL] It lists out loads of ways of connecting to different datasources...

Member Avatar for achinaseller
0
359
Member Avatar for johny1980

Hi, You are not checking your password value (from your query) to see if it is null it is possible that the exception is being thrown as you try to compare a string to a null value. [CODE]If strPassword = dr.Item("password") Then[/CODE] (line 30) Personally I'd change my query to …

Member Avatar for finito
0
154
Member Avatar for Chris Ewe
Member Avatar for G_Waddell
0
112
Member Avatar for ranu jain

Hi Try looking here: [URL="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.linkbutton.aspx"]http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.linkbutton.aspx[/URL] I'll give you a hint PostbackURL is a [B][U]property[/U][/B] of the linkbutton class

Member Avatar for hirenpatel53
0
89
Member Avatar for jiya rathore

Hi I want a red sports car, a million dollar home and my own airplane. Seriously are you expecting someone to do all the hard work so you can hand it in for what ever exam / practical you are doing? [B]The only place success comes before work is in …

Member Avatar for cheenu singh
-3
219
Member Avatar for eftela

Hi Normally scrollable objects have the following properties: AutoScroll -automatically show scrollbars (True /False) HScroll - Horizontal Scrollbar (True/False) VScroll - Vertical Scrollbar (True/False) e.g. Switch on a horizontal scroll bar: [CODE] MyObject.HScroll = True [/CODE] I'm just not sure if the picture box supports scroll bars I assume it …

Member Avatar for eftela
0
1K
Member Avatar for starlight849

Hi At it's simplest you just do this: [CODE] MyDatagridView.Datasource = MyDataTable MyDatagrigView.refresh [/CODE] You need to get it to refresh to show the changes Try looking up datagridView class in Google for more details on the properties and some examples of using it.

Member Avatar for starlight849
0
6K
Member Avatar for toomuchtodo

Hi, I think I may have answered this in your previous question? [URL="http://www.daniweb.com/forums/thread296131.html"]http://www.daniweb.com/forums/thread296131.html[/URL] Anyway read in each line use the split function this will generate an array of a single row take this row and add it to your array. [B]Note of Caution:[/B] if your source file handles empty or …

Member Avatar for toomuchtodo
0
332
Member Avatar for valkerye

Hi, You do not define the function or method with in your sub routine, it is available to all subroutines and functions with your form. Take line 10 out and it should work. [CODE] Dim CalculateCharges As Decimal 'not needed as CalculateCharges is a function [/CODE] You have specified that …

Member Avatar for valkerye
0
113
Member Avatar for starlight849

Hi You would probably be better off using the FolderBrowserDialog class (see [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.aspx"]http://msdn.microsoft.com/en-us/library/system.windows.forms.folderbrowserdialog.aspx[/URL]) You can use this to get the folder path then loop through the files and sub directories in the root folder.

Member Avatar for G_Waddell
0
137
Member Avatar for G_Waddell

Hi, Ever had an application that you want to store [B][U]user specific[/U][/B] settings on? e.g. login name or Form background colours, User specifc DSN connections etc. So the next time they run the app the information is there for them? This can be achieved in VB.net with just a few …

6
2K
Member Avatar for Maya Pawar

Hi, It could be a number of things, someone else may be opening your Access file on the network (or locally) or it could be open connections from your site code. In order to minimise the risk of it being your code, you should open the connection just before you …

Member Avatar for G_Waddell
0
454
Member Avatar for chandruswami

Hi, You cannot create a folder in the Client machine that would be a major security breach. I answered point 2 for you about six days ago.

Member Avatar for chandruswami
-1
287
Member Avatar for TwijoO

Hi, I'd be [B][U]very cautious[/U][/B] about letting anyone upload an exe file to my site. There is a reason the FTP server is blocking them... That being said there's times you need to allow it too. I usually have a list of blocked extensions that I check before upload and …

Member Avatar for TwijoO
0
179
Member Avatar for saranyasara

You'd run a query like this: [CODE] "SELECT * FROM MyTable WHERE pinno =" &textbox1.text &" and acctno = " &textbox2.text [/CODE] If you get no data back then there is not a match...

Member Avatar for pweegar
0
106
Member Avatar for chandruswami

Using system.io just do this: [CODE] File.copy(Source, Destination, Overwrite) [/CODE] Using FileSystemObject this: [CODE] fso.CopyFile(Source, Destination, Overwrite) [/CODE] * Overwrite is an optional boolean, I think by default this is set to False. Anyway True if you want to overwrite an existing file, False if not. Remember you will need …

Member Avatar for Nick Evan
0
94
Member Avatar for toomuchtodo

Hi, There are a couple of ways to do this one is to read each line in using filesystemObject or system.io. Another is to open an excel object and read the csv file in you can then interact with it as if it were a database and even query it. …

Member Avatar for G_Waddell
1
373
Member Avatar for shuhana84

Hi, Does the user you are connecting to the access DB with have write permissions on the file / directory? The code looks ok but if the table is empty something is stopping you.

Member Avatar for pritesh2010
0
267
Member Avatar for arch_mah

Hi, Interesting, you could try this but I'm not guarenteeing it will work: On form load size height to zero: [CODE] Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load me.height = 0 end sub [/CODE] This will hopefully leave the menu bar of the form still …

Member Avatar for arch_mah
0
237
Member Avatar for ksanthoshmail
Member Avatar for leahrose87

Hi Is this for the login? What I do is on the load event of the main form I open the Login form as a dialog: [CODE] sub Form1_Load() dim frmLogin as new LoginForm 'what ever you have called your login form.. frmLogin.ShowDialog [/CODE] if you've already got the login …

Member Avatar for leahrose87
0
534
Member Avatar for VB 2012

Hi You need to get your folder selection into a string and then open a folderdialog with the path set to that string. Where are you selecting / cutting / dragging your folder paths from?

Member Avatar for VB 2012
0
96
Member Avatar for leahrose87

Hi Is it a particular word within a sentence? or just a label? [CODE] Label1.Font = New Font(Label1.Font, FontStyle.Underline) [/CODE] You define a new font based on the old one i.e. [CODE]New Font(Label1.Font, FontStyle.Underline)[/CODE] In otherwords the new font is based on the existing value but with underline

Member Avatar for G_Waddell
0
467
Member Avatar for fenhopi

Hi, Sure read through the file, for each line use the instr function to see if the word exists in that line.

Member Avatar for fenhopi
0
78
Member Avatar for Mr Programmer

Hi, Basic programming 101 [CODE] dim i as integer =0 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = i+1 End Sub [/CODE]

Member Avatar for Mr Programmer
0
168
Member Avatar for anuj6928

Hi Try inserting these lines: [I]Before you execute the cmd[/I] [CODE] If con.State = ConnectionState.Closed Then con.open end if [/CODE] [I]at the end sub[/I] [CODE] If con.State = ConnectionState.Open Then con.Close end if [/CODE]

Member Avatar for anuj6928
0
175
Member Avatar for Mr Programmer

Hi, Is it each time your project is run you want a counter to display the number of times it has been run?

Member Avatar for trpsjt2008
0
119
Member Avatar for patr1c1a

Hi, If it it still does not work, a good tip when working in Access is to use the QBE to generate the SQL for your query, that way you know the syntax is correct for Access.

Member Avatar for G_Waddell
0
186

The End.