Thursday, December 19, 2013
Tuesday, December 10, 2013
Modify Aadhar Card Address Online
Two Things Are Mandatory To Modify AADHAAR Card :
Scanned Copies Of
1. Residence/Address Proof
2. Date Of Birth Proof ( If Date Of Birth Also Want To Modify)
Are Required.
Note: Your request requires upload of a valid and self attested document proof Maximum Size: 2 MB File types support .jpg, .pdf, .tiff, .png. Please upload and submit
To Update Aadhaar Card Address Details Online, Click The Below Link :
For Instructions And For Update Translations In Local Language Other Than English Click The Below Links:
HELP
For Instructions: https://ssup.uidai.gov.in/web/guest/ssup-instructions
For Update Translation Of Language: https://ssup.uidai.gov.in/web/guest/ssup-translation
Monday, December 9, 2013
How To Download AADHAAR Card
Unique Identification Authority Of India AADHAAR
To Download The AADHAAR Card Follow The Instructions Below:
1. Open The Website Address https://eaadhaar.uidai.gov.in/
2. Enter The Enrolment Number And Date - Time ( It Had given At The Time Of Applying AADHAAR)
3. Give Your Full Name, Pincode
4. Enter The Image Text In The Textbox
5. Enter Your Mobile Number As Given At The Time Of Applying
6. Now Click On "Get One Time Password"
7. After Clicking On "Get One Time Password", You Will Receive The Password To Your Mobile
8. Type The Received Password In "Enter OTP" Textbox
9. Now Your AADHAAR Card Is Downloaded In PDF Format.
10. Double Click On Downloaded PDF File To Open, It Asks A Password To Open The PDF File, Give Your "Pincode Number" To Open The PDF File
Sunday, December 8, 2013
Transfer Money Through Online SBI Inter Bank Transfer
Inter Bank Transfer
HELP
Personal Internet Banking
For How To Online Inter Bank Transfer In SBI, Click Below :
Wednesday, December 4, 2013
Friday, August 30, 2013
JQuery FAQ And Shopping Cart Techniques
JQuery Shopping Carts Examples
http://www.jquery4u.com/plugins/10-jquery-based-shopping-carts/
http://junejawebblog.com/2012/04/15/jquery-add-to-cart-effects/
Better Accordion Page (FAQ Page)
http://www.netmagazine.com/tutorials/make-better-faq-page-jquery
http://tympanus.net/Development/ImageTransitions/
http://snook.ca/archives/javascript/jquery-bg-image-animations/
http://www.jquery4u.com/plugins/10-jquery-based-shopping-carts/
http://junejawebblog.com/2012/04/15/jquery-add-to-cart-effects/
Better Accordion Page (FAQ Page)
http://www.netmagazine.com/tutorials/make-better-faq-page-jquery
http://tympanus.net/Development/ImageTransitions/
http://snook.ca/archives/javascript/jquery-bg-image-animations/
Friday, August 9, 2013
Quick Heal Total SecurityCrack
Quick Heal Total SecurityCrack
--> Install “Quick Heal Total Security 2012 - 2013 (32bit)“.
--> Restart your pc
--> keep pressing F8 key again and again till you get menu to go in safe mode
--> After getting in safe mode, copy all the crack files and paste in quick heal directory where quick heal is installed
Say yes to replace all files.
default directory is => c://program files/quick heal/quick heal total security folder.
--> Run quick heal. Go To Files & Folders Section.
Select Exclude Files & Folders.
Click on Add button.
Add the quick heal folder and subfolders to the exclusion list.
--> Click on Save Changes button.
--> restart pc and run normally.
Download
Saturday, August 3, 2013
WCF Tutorials
http://www.c-sharpcorner.com/tags/1/insert%2cdelete-in-wcf
http://www.c-sharpcorner.com/UploadFile/rohatash/insert-update-and-delete-data-in-gridview-using-wcf-service/
http://www.codeproject.com/Articles/17400/A-closer-look-at-Windows-Communication-Foundation
WCF Interview Questions
http://www.dotnetfunda.com/interview/showcatquestion.aspx?category=73
http://www.c-sharpcorner.com/UploadFile/788083/how-to-implement-fault-contract-in-wcf/
http://midotnetexp.blogspot.in/2013/01/wcf.html
http://www.c-sharpcorner.com/UploadFile/rohatash/insert-update-and-delete-data-in-gridview-using-wcf-service/
http://www.codeproject.com/Articles/17400/A-closer-look-at-Windows-Communication-Foundation
WCF Interview Questions
http://www.dotnetfunda.com/interview/showcatquestion.aspx?category=73
http://www.c-sharpcorner.com/UploadFile/788083/how-to-implement-fault-contract-in-wcf/
http://midotnetexp.blogspot.in/2013/01/wcf.html
Saturday, May 25, 2013
Introduction
What is ASP.net?
This tutorial written and contributed by Mitchell Harper. Please see footnote for more info.
You've probably heard the word ASP.net fairly often these days, especially on developer sites and news. This article will explain what the fuss is all about. ASP.NET is not just the next version of ASP; it is the next era of web development. ASP.NET allows you to use a full featured programming language such as C# (pronounced C-Sharp) or VB.NET to build web applications easily.
Friday, November 23, 2012
GetPath OF Direcoty or File
http://www.studyblog.net/2010/12/get-application-path-in-c/
http://www.dotnetfunda.com/codes/code2117-get-application-path.aspx
http://www.csharp-examples.net/get-application-directory/
http://www.daniweb.com/software-development/csharp/code/369432/get-files-and-folders-from-a-directory
http://www.dotnetfunda.com/codes/code2117-get-application-path.aspx
http://www.csharp-examples.net/get-application-directory/
http://www.daniweb.com/software-development/csharp/code/369432/get-files-and-folders-from-a-directory
Wednesday, November 14, 2012
How to Type the Copyright,Registration n TradeMark Symbols
To create the Registered symbol © on a PC:
- hold down the Alt key while typing the numeric keys 0169
To create a Trademark symbol ™ on a PC
- hold down the Alt key while keying in the numeric keys 0153
To create the Registered symbol ® on a PC:
- hold down the Alt key while typing the numeric keys 0174
Tuesday, October 2, 2012
Monday, October 1, 2012
DataSet,DataBinding,BindingSource
http://blogs.msdn.com/b/dchandnani/archive/2005/03/15/396387.aspx
http://blogs.msdn.com/b/dchandnani/archive/2005/03/09/391308.aspx
http://ramsonit.wordpress.com/2008/05/01/databinding-basics/
http://ramsonit.wordpress.com/category/c/
http://dotnetfacts.blogspot.in/
http://windowsclient.net/blogs/faqs/archive/2006/07/12/what-is-a-bindingsource-and-why-do-i-need-it.aspx
http://www.csharptalk.com/2010/03/how-to-create-relations-in-c-dataset.html
http://csharp.net-informations.com/dataset/dataset-multiple-tables-sqlserver.htm
http://beta.c-sharpcorner.com/uploadfile/john_charles/data-binding-in-windows-forms-2-0/
http://www.c-sharpcorner.com/UploadFile/cd19b9/how-to-download-datatable-to-text-file-in-C-Sharp/
http://blogs.msdn.com/b/dchandnani/archive/2005/03/09/391308.aspx
http://ramsonit.wordpress.com/2008/05/01/databinding-basics/
http://ramsonit.wordpress.com/category/c/
http://dotnetfacts.blogspot.in/
http://windowsclient.net/blogs/faqs/archive/2006/07/12/what-is-a-bindingsource-and-why-do-i-need-it.aspx
http://www.csharptalk.com/2010/03/how-to-create-relations-in-c-dataset.html
http://csharp.net-informations.com/dataset/dataset-multiple-tables-sqlserver.htm
http://beta.c-sharpcorner.com/uploadfile/john_charles/data-binding-in-windows-forms-2-0/
http://www.c-sharpcorner.com/UploadFile/cd19b9/how-to-download-datatable-to-text-file-in-C-Sharp/
DataGridView Auto Number After Binding The Data
Auto generate row number in DataGridView in windows application. Its simple below code shows how to do that.
//Auto Generate number
public void AutoNumberRowsForGridView(DataGridView dataGridView)
{
if (dataGridView != null)
{
for (int count = 0; (count <= (dataGridView.Rows.Count - 2)); count++)
{
dataGridView.Rows[count].HeaderCell.Value = string.Format((count + 1).ToString(), "0");
}
}
}
And Display Numbers In DataGridView First Cell:
private void dataGridViewAutoNumber()
{
for (int row = 0; row < dataGridView1.RowCount - 1; row++)
{
dataGridView1.Rows[row].Cells[0].Value = row + 1;
}
}
Just you need to pass your datagridview in below function and it will generate auto number to Header cell.
NOTE: First you have to bind the datagridview with data then call the below function.
Using C# code
public void AutoNumberRowsForGridView(DataGridView dataGridView)
{
if (dataGridView != null)
{
for (int count = 0; (count <= (dataGridView.Rows.Count - 2)); count++)
{
dataGridView.Rows[count].HeaderCell.Value = string.Format((count + 1).ToString(), "0");
}
}
}
And Display Numbers In DataGridView First Cell:
private void dataGridViewAutoNumber()
{
for (int row = 0; row < dataGridView1.RowCount - 1; row++)
{
dataGridView1.Rows[row].Cells[0].Value = row + 1;
}
}
Friday, September 28, 2012
Printing in C#
Printing in C#
Print a textbox using c#?
http://answers.yahoo.com/question/index?qid=20081230163003AA4xOaT
Printing DatagridView
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/dcb691f5-884d-4a8e-8fa0-b403896d9443/
http://www.vbforums.com/showthread.php?641650-how-to-print-data-from-database-in-C
http://stackoverflow.com/questions/10929037/how-to-save-data-from-datagridview-to-sql-server-2008-r2
http://www.dotnetfunda.com/forums/thread4931-extract-data-from-database-and-print-in-the-cument-.aspx
http://stephenchy520.blog.com/2011/02/28/the-safest-way-to-export-datatable-to-pdf-by-easily-using-c/
http://stackoverflow.com/questions/2054982/how-to-print-in-c-sharp-but-not-through-crystal-report
http://www.dreamincode.net/forums/topic/44330-printing-in-c%23/#/
Thursday, September 27, 2012
how to create ms access BACKUP and RESTORE in c#
http://stackoverflow.com/questions/5337040/create-a-backup-database-with-c-sharp
http://www.c-sharpcorner.com/Forums/Thread/64896/
http://www.daniweb.com/software-development/csharp/threads/202843/take-backup-of-sql-server-database-using-c
http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/4fbdec33-76d3-4e1e-bb33-6427a76665de/
http://vinothnat.blogspot.in/2009/01/how-to-taking-backup-database-using-c.html
http://www.dotnetobject.com/Thread-Mysql-backup-using-c
http://www.c-sharpcorner.com/Forums/Thread/64896/
http://www.daniweb.com/software-development/csharp/threads/202843/take-backup-of-sql-server-database-using-c
http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataproviders/thread/4fbdec33-76d3-4e1e-bb33-6427a76665de/
http://vinothnat.blogspot.in/2009/01/how-to-taking-backup-database-using-c.html
http://www.dotnetobject.com/Thread-Mysql-backup-using-c
private void btnBackUp_Click(object sender, EventArgs e)
{
string CurrentDatabasePath =Environment.CurrentDirectory + @"\Database3.accdb";
FolderBrowserDialog fbd = new FolderBrowserDialog();
if (fbd.ShowDialog() == DialogResult.OK)
{
string PathtobackUp = fbd.SelectedPath.ToString();
File.Copy(CurrentDatabasePath,PathtobackUp+@"\BackUp.accdb",true);
MessageBox.Show("Back Up SuccessFull! ");
}
}
private void button2_Click(object sender, EventArgs e)
{
string PathToRestoreDB = Environment.CurrentDirectory + @"\Database3.accdb";
OpenFileDialog ofd = new OpenFileDialog();
if (ofd.ShowDialog() == DialogResult.OK)
{
string Filetorestore = ofd.FileName;
// Rename Current Database to .Bak
File.Move(PathToRestoreDB, PathToRestoreDB +".bak");
//Restore the Databse From Backup Folder
File.Copy(Filetorestore, PathToRestoreDB,true);
}
}
Friday, September 21, 2012
Simple Insert, Select, Edit, Update and Delete in Asp.Net GridView control
http://www.aspdotnetcodes.com/GridView_Insert_Edit_Update_Delete.aspx
Simple Insert, Select, Edit, Update and Delete in Asp.Net GridView control
After the GridView swithes to Edit Mode, you can view the TextBoxes and DropDownlList controls along with Update and Cancel linkbuttons in the Edit mode. To cancel this action, add the following two lines of code in the GridView’s RowCancelingEdit event.
protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
GridView1.EditIndex = -1;
FillCustomerInGrid();
}
You can update the data to the customer table, by adding the following lines of code in the GridView’s RowUpdating event.
The above block of codes in RowUpdating event, finds the control in the GridView, takes those values in pass it to the CustomersCls class Update method. The first parameter GridView1.DataKeys[e.RowIndex].Values[0].ToString() will return the Code of the Customer. That is the unique code for each customer to perform update function.
Delete in GridView
To delete a row from the customer table, add the following lines of code in the GridView’s RowDeleting event. Here you have to pass the unique Code of customer which is in GridView1.DataKeys[e.RowIndex].Values[0].ToString() to the Delete method of the CustomersCls class.
This article gives you some basic idea of inserting data into database from a GridView control and does all database manipulations within the GridView without binding it with any Asp.Net Data source controls.
Output:
Simple Insert, Select, Edit, Update and Delete in Asp.Net GridView control
| Introduction | ||||||||||||||||
| This article explains the methods of binding Asp.Net GridView control with simple DataSet or DataTable, and also explains the methods like Insert, Edit, Update and Delete function in the GridView control. | ||||||||||||||||
| You can see most of the articles and tutorials in many websites teach you the way to bind a GridView control to the database with some Data Source controls such as SQLDataSource, ObjectDataSource, AccessDataSource and even XMLDatasource. But this article focus on the other way, by binding the GridView control to the database with the help of simple DataTable and perform adding of new records to the database from the footer row of the GridView control. And on each row, we are going to manipulate the records by editing, updating, cancelling and deleting functions. Sample Scenario For demonstration, we are going to fill an ASP.NET GridView control with data from a database. Let us take a simple Customer Table. This customer table contains 6 columns such as Customer Unique Code, Name of the Customer, Gender, City, State and Customer Type. We are going to add new records to the database and populate it in the GridView control. Then record manipulation (edit, update and delete) will be done in each and every column with the server controls such as TextBox and DropDownList. In these 6 columns, we are not going to display Customer Code, and to edit Customer Name and City columns we are going to provide TextBox, to edit Gender and Customer Type we are going to use DropDownList. Additionally, the values for Gender DropDownList will be filled with static values such as Male and Female, other DropDownList for Customer Type, we will be filled dynamically with the values from the Database.
|
After the GridView swithes to Edit Mode, you can view the TextBoxes and DropDownlList controls along with Update and Cancel linkbuttons in the Edit mode. To cancel this action, add the following two lines of code in the GridView’s RowCancelingEdit event.
protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
GridView1.EditIndex = -1;
FillCustomerInGrid();
}
You can update the data to the customer table, by adding the following lines of code in the GridView’s RowUpdating event.
| protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) { TextBox txtName = (TextBox)GridView1.Rows[e.RowIndex].FindControl("txtName"); DropDownList cmbGender = (DropDownList)GridView1.Rows[e.RowIndex].FindControl("cmbGender"); TextBox txtCity = (TextBox)GridView1.Rows[e.RowIndex].FindControl("txtCity"); DropDownList cmbType = (DropDownList)GridView1.Rows[e.RowIndex].FindControl("cmbType"); customer.Update(GridView1.DataKeys[e.RowIndex].Values[0].ToString(),txtName.Text, cmbGender.SelectedValue,txtCity.Text, cmbType.SelectedValue); GridView1.EditIndex = -1; FillCustomerInGrid(); } |
The above block of codes in RowUpdating event, finds the control in the GridView, takes those values in pass it to the CustomersCls class Update method. The first parameter GridView1.DataKeys[e.RowIndex].Values[0].ToString() will return the Code of the Customer. That is the unique code for each customer to perform update function.
Delete in GridView
To delete a row from the customer table, add the following lines of code in the GridView’s RowDeleting event. Here you have to pass the unique Code of customer which is in GridView1.DataKeys[e.RowIndex].Values[0].ToString() to the Delete method of the CustomersCls class.
| protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { customer.Delete(GridView1.DataKeys[e.RowIndex].Values[0].ToString()); FillCustomerInGrid(); } |
This article gives you some basic idea of inserting data into database from a GridView control and does all database manipulations within the GridView without binding it with any Asp.Net Data source controls.
Output:
| Sample For Simple Insert, Select, Edit, Update and Delete in GridView | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| This the sample page for making simple insert, select, edit, update and delete functions in GridView control. You can entered your own data in the controls and click Add New link to add into the GridView control. Then you can do Edit, Update and Delete functions. Even you can try by deleting all the existing records and insert new records from the controls placed in the footer section of the GridView control. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Monday, September 17, 2012
MS Access Date and Time with ASP.NET
http://www.codingforums.com/showthread.php?t=150409
http://www.mikesdotnetting.com/Article/92/MS-Access-Date-and-Time-with-ASP.NET
MS Access Date and Time with ASP.NET
Getting odd results and unexpected errors when working with Dates and Times in Access through ASP.NET is a common problem. Here's an overview of the Access DateTime data type, and some resolutions to the more frequently encountered errors.
First, it's worth pointing out that the ONLY data type within Access that is appropriate for storing dates and times is the DATETIME data type. It is not uncommon to find that people are trying to work with dates and times stored in TEXT fields. The problem with this approach is that any sorting on dates in TEXT fields will only be done alphabetically because they will be treated as strings.
The Access DATETIME is actually an OLE Automation Date datatype. It is implemented as a double-precision (64bits) floating-point number. The time and date at the moment I start to type this is 08:34:27 on December 13th, 2008. As an OLE Automation Date, this appears as 39795.3572615509. The integer portion to the left hand side of the decimal point represents the number of days since December 31st 1899, while the the proportion of the current day in seconds that has elapsed since midnight appears after the point. 8.00am is one third of the day, or 0.33 of a day. At midday exactly, the OLE Automation Date will be 39795.5. You will also see this behaviour with Excel. For example, if you type 13/12/2008 into a cell, then select the cell directly below and press Ctrl + ' (the combination that copies the contents of the cell directly above) you will get 39795, unless the new cell has been formatted to a specific Date and Time format.
Inserting the current Date into Access can be done in a number of ways. The first example shows how to do this using the .Net DateTime data type directly:
string connect = "Provider=Microsoft.Jet.OleDb.4.0; Data Source=|DataDirectory|mbbase.mdb";
using (OleDbConnection cn = new OleDbConnection(connect))
{
string sql = "INSERT INTO TEST (MyDateTime) VALUES (?)";
OleDbCommand cmd = new OleDbCommand(sql, cn);
cmd.Parameters.AddWithValue("", DateTime.Now.Date);
cn.Open();
cmd.ExecuteNonQuery();
}
This results in 13/12/2008 appearing in my copy of Access with the setting set on my machine as UK dd/mm/yyyy.
Probably the easiest way, however, with the current date is to use the built-in Date() function within Access and forget all about a parameter. The Date() function gets the current system date:
string connect = "Provider=Microsoft.Jet.OleDb.4.0; Data Source=|DataDirectory|mbbase.mdb";
using (OleDbConnection cn = new OleDbConnection(connect))
{
string sql = "INSERT INTO TEST (MyDateTime) VALUES (Date())";
OleDbCommand cmd = new OleDbCommand(sql, cn);
cn.Open();
cmd.ExecuteNonQuery();
}
The Jet Provider is pretty good at parsing strings into Ole Automation Dates, so long as the string follows the format of a recognisable Date. I'll add a TextBox and a Button to a form, and use that as the source of the value that will be entered:
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" />
<br />
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
</div>
</form>
Next, I'll change the code-behind to put the processing in the button click event:
protected void Button1_Click(object sender, EventArgs e)
{
string connect = "Provider=Microsoft.Jet.OleDb.4.0; Data Source=|DataDirectory|mbbase.mdb";
using (OleDbConnection cn = new OleDbConnection(connect))
{
string sql = "INSERT INTO TEST (MyDateTime) VALUES (?)";
OleDbCommand cmd = new OleDbCommand(sql, cn);
cmd.Parameters.AddWithValue("", TextBox1.Text);
cn.Open();
cmd.ExecuteNonQuery();
}
}
Using this set up, all of the following strings can be entered into the TextBox and inserted into the database DATETIME field without problem:
13 Dec 2008
13 December 2008
13 Dec 08
13 December 08
Dec 13 08
Dec 13 2008
13/12/2008
13/12/08
13-12-08
13 12 08
13 12 2008
Along with some others, but that should do for the time being.
13 December 2008
13 Dec 08
13 December 08
Dec 13 08
Dec 13 2008
13/12/2008
13/12/08
13-12-08
13 12 08
13 12 2008
Along with some others, but that should do for the time being.
The question is how do you get your users to enter the date in an acceptable format? There are a number of UI ways in which this can be done. You can tell them, by adding instructions to the form, or you can simply use a Calendar control (Calendar Extender from the Ajax Control Toolkit is good, as are many of the jQuery date picker plug ins) and set the format yourself. Or you can provide dropdown lists for day, month and year, and control the format that way.
The Time part of a DateTime is a tiny bit different. For example trying to pass in DateTime.Now will result in a "Data type mismatch in criteria expression" error. The reason for this is that the .Net DateTime.Now property includes milliseconds which can be seen by writing the current time using the following format:
String.Format("{0:yyyy-MM-dd hh:mm:ssss:ffffff}", DateTime.Now)
Access has no way of handling milliseconds, because if we remember, the right hand side of the OLE Automation Date only holds the proportion of the elapsed day in whole seconds. For the current time, the simplest solution is to use the Access built-in function Now() in your SQL, just as we did with Date() earlier. If you wanted to add another time, there are various options. The ToString() method removes the milliseconds from a .Net DateTime object, so this is one way to approach it:
protected void Button1_Click(object sender, EventArgs e)
{
string connect = "Provider=Microsoft.Jet.OleDb.4.0; Data Source=|DataDirectory|mbbase.mdb";
using (OleDbConnection cn = new OleDbConnection(connect))
{
string sql = "INSERT INTO TEST (MyDateTime) VALUES (?)";
OleDbCommand cmd = new OleDbCommand(sql, cn);
cmd.Parameters.AddWithValue("", DateTime.Now.AddDays(-10).ToString());
cn.Open();
cmd.ExecuteNonQuery();
}
}
Another is to use the ToOADate() method, which converts the .Net DateTime to an Ole Automation Date, which as we have established is what Access really likes:
protected void Button1_Click(object sender, EventArgs e)
{
string connect = "Provider=Microsoft.Jet.OleDb.4.0; Data Source=|DataDirectory|mbbase.mdb";
using (OleDbConnection cn = new OleDbConnection(connect))
{
string sql = "INSERT INTO TEST (MyDateTime) VALUES (?)";
OleDbCommand cmd = new OleDbCommand(sql, cn);
cmd.Parameters.AddWithValue("", DateTime.Now.AddHours(36).ToOADate());
cn.Open();
cmd.ExecuteNonQuery();
}
}
Again, there are a fair number of valid formats for times entered as strings into the TextBox:
13/12/2008 20:00:00
December 13 2008 8:00:00 PM
13 Dec 08 08:00:00
2008-12-13 18:00:00
etc.
December 13 2008 8:00:00 PM
13 Dec 08 08:00:00
2008-12-13 18:00:00
etc.
Regional Settings
Generally, you will have the Access database on the same machine as the web application is running on, so there is unlikely to be any variation in terms of date formats. However, it is worth pointing out that the built-in Access functions, Date() and Now() pick up the current system time from the machine on which the database resides. Consequently, it come be a problem developing an application on a machine with UK Regional settings, where the date format is generally dd/mm/yyyy, and then transferring this to a US-based server, where the regional settings will expect mm/dd/yyyy. Changing the format in the Table Designer within Access has absolutely no effect on the underlying values. As we have already established, the underlying values are stored as double-precision floating-point numbers, not as formatted dates and times. The formatting option only allows you to instruct Access as to how you would like to see dates and times in Table view, or in Forms and Reports.
If you think there is any chance that your application may run on a machine where you have no control over the Regional Settings, or they are unknown, you are always best advised to input dates in the format yyyy-mm-dd, or ToOADate(). This way, there is no likelihood of the 3rd of July becoming the 7th of March at some stage in the future. Certainly when querying dates within Access, it is always best to use the yyyy-mm-dd format. In addition, using parameters eliminates most problems encountered when using delimiters with dates and times.
Subscribe to:
Posts (Atom)





