Ade:
Thanks for the response. Sorry for the delay.
Ade, this is a scheduler and hence it will be inconvenient for the users to see the time in 24hr format. It will help coding but may not be good for the users. Hence I am trying to keep the time in the 12 hr format.
I tried using the code that you provided (I copied and pasted the code). While executing, it gives the error "Syntax...
User Profile
Collapse
-
A. Ade, In the class they are declared as:
Code:Dim mstrScheduleID AS String Dim mstrPeronID AS String
The values for these variables are pulled from other tables in the database depending on who is using the system and on which schedule there are.
B. Ade, I just realized that this is the mistake made throughout the code....Leave a comment:
-
Ade, I apologize if I mis-spelled anything.
The metadata information that you requested.
Table Name = ScheduleItem
Code:ScheduleItemID; AutoNumber, PK ScehduleID, Number, Fk PersonID, Number, FK StartTime, Date/time EndTime, Date/Time RoleID, Number, FK
Code:RoleID, Autonumber, PK RoleName, Text
Leave a comment:
-
Ade,
Thanks for coming to the recuse.
Earlier I tried the Orderby function, but it had not worked for me. I Am now sure that I had made some stupid mistake in the snytax.
Ade, the solution that you have provided works for me and can meet the minimun requirements of my project atleast.
The limitation of this method would be that the user cannot Sort the Datagridview while...Leave a comment:
-
The above diagonsis seems to be incorrect.
http://www.thescripts.com/forum/thread347463.html
It is Access that is causing the problem I guess.
They have used the "format" technique which did not work in my case due to sorting.
Ajay Bathija
www.ajaybathija.com...Leave a comment:
-
Same result, the date is being inserted.
Based on the techniques that we have used, my understanding is that Access is not the one adding the date. The vb.net or the ole Adapter is adding the date.
If I use the simple query for just pulling the time directly (wihtout any formating) in access then it returns the time with no date. When I use that query in the vb.net code then Date is inserted.
I can...Leave a comment:
-
Mary, thanks for the Single quote information.
I tried the Cdate technique, it inserted the Date (12/30/1899 9:00 AM)...Leave a comment:
-
Mary:
Thanks for the help. I highly appreciate it.
You said:
First, I hoping that I am not missing anything, the only change you suggested was in "Myquery".
I tried using the code that you provided, but vb.net would not accept it, as it was getting confused in the "s being used.
Hence I tried the following:
Code:myQuery = "SELECT format(Tb1.StartTime,"
Leave a comment:
-
How to Separate Time from Date
Hi:
I am new to this forum. If I am not through in my explanation then please let me know.
I need help in figuring out how I can accomplish the following.
I am using VB.net for the front end application, and connecting it to the Access database
In the VB form I have a data grid. I am trying to fill the datasource of the data grid from the access table.
I have an access...
No activity results to display
Show More
Leave a comment: