713 Posted Topics

Member Avatar for bluehangook629
Member Avatar for debasisdas
0
171
Member Avatar for jaejoong

You can create the same by just using an Excel file as a template. Create an Excel file, in page setup set Header "Page 1 of ?", custom footer with "Signature", and for rows to repeat at top (can be found at sheet tab) select the 1st 2 rows. The …

Member Avatar for bklynman01
0
158
Member Avatar for VIPER5646

A textchange search can take a long time, but this doesn't have to be because you are using classes or the same class for that matter. If your search is taking a while and it hapens after each keystroke, then you should either plan your search differently or replace the …

Member Avatar for VIPER5646
0
101
Member Avatar for rEhSi_123

Since you are working with web pages and you don't know what kind of characters you'll be storing in your db, it's wrong to use the "whatever = '" & something.text &"'" as the something.text might have single quotes (') in it. Something like this would break your select. Use …

Member Avatar for rEhSi_123
0
220
Member Avatar for sabika abbas
Member Avatar for adam_k
-1
47
Member Avatar for sabika abbas

Read here: [url]http://msdn.microsoft.com/en-us/library/ms171933(v=vs.80).aspx[/url]

Member Avatar for adam_k
0
37
Member Avatar for arsenalfun

Since you mention pulling the charger from the laptop, the 1st thing I would check is if the power socket is still soldered on the motherboard. If it's not, solder it and you should be alright. There is always the change that you've cracked the motherboard, but that's not something …

Member Avatar for faroukmuhammad
-1
207
Member Avatar for ILIAILIA

wouldn't an if between the for and the sum do the trick? [CODE]For i = 0 To Table1DataGridView.RowCount - 1 if Table1DataGridView.Rows(i).Cells(3).Value() = "True" sum += Table1DataGridView.Rows(i).Cells(4).Value() [/CODE]

Member Avatar for ILIAILIA
-1
444
Member Avatar for sabika abbas

Perhaps you are setting something in design and changing it with your code? Can you specify what you are changing and can't see when running the program?

Member Avatar for sabika abbas
0
98
Member Avatar for jgat2011

What do you mean by report? Do you have in mind crystal reports, an excel file, something else???

Member Avatar for saj_amo
0
65
Member Avatar for pixma

So you propose OCR with a database connection? How is this going to be original? I've seen this at least in 12 different parkings, with the license plate being printed on the ticket and then being verified from the ticket when exiting. (Aha, so you plan to use the specs …

Member Avatar for adam_k
0
164
Member Avatar for sherinpoulose

You have to figure out how your dbs should be named and pass that name to Create Database. For some strange reason I'm guessing you are following a wrong path here. Can you explain again why each users output rules have to go to a different db? Wouldn't a table …

Member Avatar for adam_k
0
105
Member Avatar for hermann87

I've got a good one for you, which could combine most of your interests. I would go with WMS software as a service. It's the new trend, it combines cloud computing ,DBs, distributed systems and you've got something that almost nobody in Greece knows much about. Don't blame me during …

Member Avatar for hermann87
0
145
Member Avatar for arjen

GetAsyncKeyState doesn't check clipboard, that's for sure. You monitor the clipboard contents if you want and use GetAsyncKeyState to see if the data got pasted using Ctrl+V, but I don't see how you could tell if the data got pasted by clicking the paste icon or the Edit/Paste from menus. …

Member Avatar for arjen
0
595
Member Avatar for jovillanuev

[QUOTE=jovillanuev;1601429]Can be incorporate to one script..(select statement) thanks for your reply.[/QUOTE] select * from (select 1 as 'abc' avg(field) from table where .... ) a inner join (select 1as 'abc',avg(field) from ....) b on a.abc = b.abc inner join ......

Member Avatar for sknake
0
198
Member Avatar for mrbungle

Do you mean update data with the ID for criteria ? PS: Although it's not the cause of your problem, you need to change this part as well [CODE] Try If SQLConnection.State = ConnectionState.Closed Then SQLConnection.Open() MsgBox("Connected...") Else SQLConnection.Close() MsgBox("Connection failed") End If Catch ex As Exception End Try [/CODE] …

Member Avatar for mrbungle
0
272
Member Avatar for aaje

Depending on the database you are working with, there are a number of options (or lack of). If this is an SQL server I would handle the update/insert with a stored procedure. I believe it offers way more control and I find it easier, cleaner and less bandwith consuming to …

Member Avatar for aaje
0
226
Member Avatar for strRusty_gal

[QUOTE=sknake;1601715]Its very difficult to understand your question. Here's my guess at what you're after: [code=sql] Declare @StartDate DateTime, @EndDate DateTime Set @StartDate = CAST(Floor(CAST(GetDate() as float)) as DateTime) --Trim off the time portion Set @EndDate = @StartDate + 1 Select * From SomeTable Where CreateDate >= @StartDate and (CreateDate < …

Member Avatar for sknake
0
635
Member Avatar for Pari13

Since you want 2 particular names to go last, I assume you know how to sort the results, but want the whole field sorted ascending and out of sort those 2 names in the bottom. I'll give you an example for 2 names hardcoded and you can modify it with …

Member Avatar for adam_k
0
121
Member Avatar for Istw

[QUOTE=chibex64;1600679]first of all, to have a matching 'user_id' with a matching 'iD' in the users table, there has to be a relationship between the two tables in order to avoid conflicts or avoid the return of nulls.[/QUOTE] Not necessarily. Null is a value and it is not always possible to …

Member Avatar for adam_k
0
145
Member Avatar for mogaka

And why do you go with random number with 4 digits? Why don't you use an integer + indentity, or GUI or datetime? 4 digits mean your table can hold only up to 9999 records. If you want it to be totally random and impossible for somebody to find the …

Member Avatar for adam_k
0
77
Member Avatar for Fa3hed

or use [CODE] if i < ListBox1.Items.Count - 1 then textbox6.text &= "," [/CODE] to insert the comma (,) character.

Member Avatar for adam_k
0
137
Member Avatar for Fransh

If you don't want to go with the textchanged events, you can have a timer call the calculate function.

Member Avatar for adam_k
0
140
Member Avatar for doomhades666

[QUOTE=doomhades666;1595330]And how can i save it to database.[/QUOTE] When do you want to save it, where and using what (as a column and as a field) as criteria for the update. If you want to create a new record (and not update an existing one) you'll need to provide with …

Member Avatar for doomhades666
0
926
Member Avatar for mogaka

using dateadd function. Read about it here: [url]http://msdn.microsoft.com/en-us/library/ms186819.aspx[/url]

Member Avatar for adam_k
0
74
Member Avatar for vijaybrar

Since you are new to this, a small hint: If you get lost with the nested IFs and can't tell where each else (or end if) goes to which if, it might help you to add a comment at the end of the line starting the if with a number. …

Member Avatar for codeorder
-1
893
Member Avatar for mogaka

So your question is how would your app know when a sms has been received? Why don't you check the db every few secs or something?

Member Avatar for adam_k
0
87
Member Avatar for kallas
Member Avatar for adam_k
0
95
Member Avatar for bigzos

See if this will help you: [url]http://www.codeproject.com/KB/vb/Senthil_S__Software_Eng_.aspx[/url]

Member Avatar for adam_k
0
156
Member Avatar for nitguit

Read here: [url]http://www.freecodesnippets.com/code/vb.net/database-ado.net/database-listview/read-data-and-feed-into-listbox-and-listview-using-oledb[/url] Scroll down to Private Sub Button1_Click and you'll find your answer.

Member Avatar for adam_k
0
579
Member Avatar for Xcelled194

[QUOTE=mogaka;1595160]use tcp/ip protocals to connect to the remote machine. first configure sql to accept remote tcp/ip connections[/QUOTE] I can hardly see how SQL is going to help copy files.

Member Avatar for Xcelled194
0
147
Member Avatar for moone009

You should not have any problem as long as you specify the table.owner in your select: [CODE]select * from LCDEL.dbo.tablename select * from LCDFV.dbo.tablename[/CODE] You don't need an openrowset to read from SQL Server. Not even if they weren't in the same server (you would need to link the 2 …

Member Avatar for adam_k
0
178
Member Avatar for bluehangook629

If you do find a way to run the code when TAB is pressed, wouldn't that mean that your code would run after every scan? Why don't you check if the text entered is equal to the barcode you plan the users to scan for finishing the data entry? Just …

Member Avatar for bluehangook629
0
1K
Member Avatar for jovillanuev

Since you are not providing a clear set of rules for your query, I will improvise. You can change the criteria used on your own, or provide a clear set of rules. [CODE] select a.ESN, a.TYPE,a.DATE,b.RMA from tablename a left join (select ESN, RMA from tablename where RMS IS NOT …

Member Avatar for jovillanuev
0
158
Member Avatar for SaaDwTk
Member Avatar for ChrisPadgham
0
190
Member Avatar for moone009

Edit your post and remove IP Address and administrators password ASAP. Next time don't include them in any post or your problem might not matter (after a malicious attack). PS: Specify a provider on your openrowset. Read here for info: [url]http://msdn.microsoft.com/en-us/library/ms190312.aspx[/url]

Member Avatar for adam_k
0
74
Member Avatar for Evesy

Why do you need a program? Doesn't it have a sleep value you can reduce and get it to go in standby mode? What model is the printer?

Member Avatar for debasisdas
0
212
Member Avatar for jovillanuev

Please post table schema for both your tables. urtrivedi is right you don't need to convert. Why are you using STR? Is this MS SQL?

Member Avatar for jovillanuev
0
411
Member Avatar for bhob

Like debasisdas said, yes you can. But this won't delete the record from both tables, if that's what you had in mind. It's use is to delete from grp_performance, using c.cat_name as an example. If you need to delete from both tables with 1 delete, you will need a trigger.

Member Avatar for hfx642
0
286
Member Avatar for Afi83

What is itr ? I don't think that you are creating a sheet the first time around [CODE]Dim xlWSheet As excel.Worksheet = CType(xlWBook.Worksheets(1), excel.Worksheet)[/CODE] This selects an existing sheet, not adding one. This should be adding: [CODE] dim newsheet as excel.worksheet newsheet = wlWBook.worksheets.add [/CODE] PS: Use newsheet2 for a …

Member Avatar for adam_k
0
101
Member Avatar for Joshua Kidd

I guess that you are looking for a particular column in your datagridview. [CODE]DataGridView1.Item(0, DataGridView1.SelectedRows.Item(0).Index).Value[/CODE]

Member Avatar for adam_k
0
325
Member Avatar for Netcode
Member Avatar for Netcode
-1
286
Member Avatar for bigzos

1st of all your login form is weak. It can be bypassed in half a second. Try retrieving a count and verify that the count returned is equal to 1. This way even if the query is bypassed, you won't give access further down. as for changing password, copy your …

Member Avatar for bigzos
0
3K
Member Avatar for Sophiron
Member Avatar for Sophiron
0
220
Member Avatar for AnooooPower

I'm guessing using SqlClient.SqlConnection (That it MS SQL) won't work with MySQL. Follow the link in adatapost's message to get the mysql connector and try using that, with the appropriate connection string.

Member Avatar for AnooooPower
0
521
Member Avatar for mogaka

[QUOTE=mogaka;1595281]I have developed a system which should be accessed remotely. the system reads sql credentials from a notepad file to authenticate to the remote sql server. however, when trying to connect, the system says: "request for odbc permission failed". but if i put the application on the client machine together …

Member Avatar for adam_k
0
100
Member Avatar for masterjiraya

Read here to get a hint: [url]http://www.codeproject.com/KB/threads/applicationhost.aspx[/url]

Member Avatar for adam_k
0
211
Member Avatar for mrbungle

Mitja Bonca was adding records to the datatable with this part of code, same as with the columns. If you have the data in a dataset, you don't need to add them manually to your datatable.

Member Avatar for mrbungle
0
2K
Member Avatar for Misheki

When you run your export code your browser doesn't show your page at all, or is it not populating your datagrid? I believe that you will need a pop-up to handle the export and leave your page with the datagrid.

Member Avatar for Misheki
0
186
Member Avatar for Pgmer

I think you are looking for [CODE] order by left(column_name,1),substring(column_name,2,1),substring(column_name,3,1)[/CODE]

Member Avatar for debasisdas
0
109

The End.