Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~5K People Reached
Favorite Forums

18 Posted Topics

Member Avatar for johmolan

It is better to not use numeric column names but if you must then I think you can reference them by enclosing you column name in apostrophes, like so: '10'

Member Avatar for Atove
-1
119
Member Avatar for Member #1099149

If you comment out your Catch statement within your Try block of Save_Record() Sub and try executing the code again; is there a particular element that is highlighted as an 'object reference not set to an instance of object' and what is it?

Member Avatar for Member #1099149
0
202
Member Avatar for Member #1099149

Seems to work fine; are you setting the Handle to the right control? Private Sub txtPassword_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles [Your_Control_Name].KeyPress

Member Avatar for Atove
0
2K
Member Avatar for sonyeo

If you want to update a single record you need to add a where clause to your sql statement. sqlcmd = New SqlCommand("UPDATE table1 SET [Processor]=@Processor WHERE id=@id", sqlconn) You just need to get the unique identifier for the row you wish to update in your database table. Hope this …

Member Avatar for sonyeo
0
154
Member Avatar for gauravagg2

How about a version of tic-tac-toe; playable either against the computer or against another player over a network? Hope this helps!

Member Avatar for JamesCherrill
0
563
Member Avatar for Cifale

Try it like this: [CODE] tmp = IIf(IsDBNull(rdr(0)), 0, FormatNumber(rdr(0))) [/CODE] It appears that you cannot use .GetInt32 in an IsDBNull function. Additionally because IIf statements run both sides of the true/false statement if you want to use rdr.GetInt32(0) when it is true you will have to use a standard …

Member Avatar for Cifale
0
760
Member Avatar for swathys

You need to parse in the value you want as a string, apply the formatting, then return the value as a string so that it shows the decimal places. [CODE] Private Function calc(ByVal valueIn As Double) As String Dim newValue As String newValue = Format(valueIn / 100, "0.00") Return newValue …

Member Avatar for swathys
0
190
Member Avatar for rakhi12

This will create a message box that appears with a message of your choice. [CODE] msgbox("Example Message") [/CODE] Hope this helps!

Member Avatar for Atove
0
42
Member Avatar for Kish85

Is your datasource copied to the exact same location on the other computer? As stated in your code. That may be your problem; however without knowing abit more about the error/s its throwing i cannot really think of anything else to suggest. Hope this helps.

Member Avatar for vbhelp
0
75
Member Avatar for JAM1011

Try writing it out like this, should work. [CODE] Poplist2 = "SELECT Machine_ID, Make, Model, Problem, Rating, MacStatus WHERE Rating =" & NewTime & ";" [/CODE]

Member Avatar for JAM1011
0
107
Member Avatar for Atove

Hi all! I'm trying to create search criteria for searching my sql server database. It selects the correct data when you select an option to search by; however i'm trying to make it so that if nothing is selected in an option it selects all data. the code i'm using …

Member Avatar for sknake
0
100
Member Avatar for flit07

I've had a quick look at this; seems to work fine when you call the checkinput() sub. I ran it calling checkinput() on form load and it changed the button to lime. [code] Public Class Form1 Public Event Done() Private Sub checkinput() 'Port = ReceivedString.Split("&") 'For i = 0 To …

Member Avatar for flit07
0
110
Member Avatar for Atove

Hi all; I'd be really grateful if someone could assist me with this problem. What i am trying to do is create a query that pulls information from two different tables: tblBooking and tblConcessions. tblBooking holds the ID number of tblConcessions as a ForeignKey. What i need within my statement …

Member Avatar for TomW
0
120
Member Avatar for Atove

Ok heres my problem which i'm starting to find very annoying :S I am trying to load a date stored on my sql server database into a date time picker. [code] Dim MyDate As Date = (DetailLookup("PLIExpiry", "tblConcessions", "ConcessionID", varCompanyKey)) frmConcessions.dtpPPLIExiryDate.Value = MyDate [/code] DetailLookup is a public function that …

Member Avatar for TomW
0
168
Member Avatar for Atove

Hi all! Okay i've been attempting to create this segment of code which is supposed to read from the database; based on search criteria entered, then load them into a form for viewing/editing. I am able to read the concessionID from the database; however i am then unable to select …

Member Avatar for Atove
0
114
Member Avatar for Atove

Hi all; i'm trying to connect my program to an SQL Server Express database... however i am just getting an error that simply states: "Login failed for user 'sa'." Within my code this appears on: objConnection.Open() my code so far is: [code] Imports System.Data.SqlClient Imports System.Data Private Sub Form1_Load(ByVal sender …

Member Avatar for Atove
0
127
Member Avatar for Atove

Hi all! I'm developing some software for my current employer and i'm looking to incorporate an option that changes the font size across all forms for accessibility purposes. Now I have managed to make it work; however the code appears long and inefficient. My question to you guys is: Is …

0
57
Member Avatar for dhavalcoholic

Hi dhavalcoholic, One of my friends has a similar problem; i stumbled across this forum that potentially has a solution. I have not gotten around to trying it yet; but it may well be worth a look. Hope this helps. [url]http://forums.techguy.org/hardware/580944-toshiba-satellite-d-drive-not.html[/url]

Member Avatar for Atove
0
218

The End.