Click here to Skip to main content
16,005,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralVB6 problem using Crystal Reports Pin
Anonymous27-May-05 5:37
Anonymous27-May-05 5:37 
GeneralExecuteNonQuery() not working Pin
macca2427-May-05 4:09
macca2427-May-05 4:09 
GeneralRe: ExecuteNonQuery() not working Pin
Colin Angus Mackay27-May-05 5:27
Colin Angus Mackay27-May-05 5:27 
QuestionHow to remove system menu from MDI child form?? Pin
David Moody27-May-05 3:38
David Moody27-May-05 3:38 
QuestionWhat is the difference between LDAP and MAPI? Pin
SamNasr27-May-05 2:57
SamNasr27-May-05 2:57 
AnswerRe: What is the difference between LDAP and MAPI? Pin
Dave Kreskowiak27-May-05 3:58
mveDave Kreskowiak27-May-05 3:58 
Generaldate problem Pin
hakanaktan27-May-05 0:31
hakanaktan27-May-05 0:31 
GeneralRe: date problem Pin
Colin Angus Mackay27-May-05 10:37
Colin Angus Mackay27-May-05 10:37 
hakanaktan wrote:
What must sql tables "DateKeeper" coloumn type be?(smalldatetime for dd.mm.yyyy?)

That depends on how fine grained you want your dates and what range of dates you want. You know that the most important tool of a good developer (assuming you aspire to be more than a coder and become a developer) is to be able to find stuff in the documentation. Google is a great way to find stuff. Try this in Google:
site:msdn.microsoft.com smalldatetime
And the first link is datetime and smalldatetime[^] which tells you exactly the accuracy and range of the two chronological types in SQL Server.

hakanaktan wrote:
And in which type i have to send my dates that i receive from DateTimePickers?

The DateTimePicker will give the date in a DateTime object, you don't need to convert it if you create your SqlCommand properly (by using parameterise queries)

hakanaktan wrote:
If possible plz write the Select sentence of this code.("select * from MyTable Where DateKeeper>=firstDate And

SELECT * ??? You should be listing each of the columns you want. If your data model changes then you could break your .NET application to easily without knowing immediately. If you don't know immediately then it becomes harder to track where the bug came from.

The SQL you need in your SqlCommand.CommandText is something like this:
SELECT MyColumn1, MyColumn2 
FROM MyTable
WHERE DateKeeper>=@firstDate
AND DateKeeper<=@lastDate


Your SqlCommand object will take two Parameters
MyCommand.Parameters.Add("@firstDate", firstDateTime);
MyCommand.Parameters.Add("@lastDate", lastDateTime);



hakanaktan wrote:
-MCP& MCAD &junior coder--

I noticed you added MCP and MCAD to your signature recently. Congratulations on passing these exams.


My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralThanx Pin
hakanaktan27-May-05 19:59
hakanaktan27-May-05 19:59 
QuestionHow to connect to a remote computer? Pin
26-May-05 21:43
suss26-May-05 21:43 
QuestionHow to Call an Standard EXE from VB.NET Pin
Mahesh167926-May-05 20:43
Mahesh167926-May-05 20:43 
AnswerRe: How to Call an Standard EXE from VB.NET Pin
gemnet26-May-05 21:40
gemnet26-May-05 21:40 
GeneralRe: How to Call an Standard EXE from VB.NET Pin
toxcct27-May-05 7:21
toxcct27-May-05 7:21 
AnswerRe: How to Call an Standard EXE from VB.NET Pin
Dave Kreskowiak27-May-05 2:27
mveDave Kreskowiak27-May-05 2:27 
Generaldatabinding function/sub for any databindable control types Pin
Anonymous26-May-05 18:38
Anonymous26-May-05 18:38 
GeneralRe: databinding function/sub for any databindable control types Pin
gemnet26-May-05 21:39
gemnet26-May-05 21:39 
Generalfunction to handle DBNulls with CTYPE conversions Pin
Anonymous26-May-05 18:18
Anonymous26-May-05 18:18 
GeneralConfiguring IIS Pin
nitin_ion26-May-05 17:43
nitin_ion26-May-05 17:43 
GeneralEmbedded images in a uer control Pin
tibmark26-May-05 14:46
tibmark26-May-05 14:46 
GeneralRe: Embedded images in a uer control Pin
Christian Graus26-May-05 16:03
protectorChristian Graus26-May-05 16:03 
GeneralCombining DLL to create a combined DLL Pin
Dr_Lomax26-May-05 6:59
Dr_Lomax26-May-05 6:59 
GeneralRe: Combining DLL to create a combined DLL Pin
Christian Graus26-May-05 12:27
protectorChristian Graus26-May-05 12:27 
GeneralRe: Combining DLL to create a combined DLL Pin
Anonymous27-May-05 1:13
Anonymous27-May-05 1:13 
GeneralRe: Combining DLL to create a combined DLL Pin
Christian Graus27-May-05 1:54
protectorChristian Graus27-May-05 1:54 
GeneralRe: Combining DLL to create a combined DLL Pin
Robert Rohde27-May-05 5:24
Robert Rohde27-May-05 5:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.