User Profile

Collapse

Profile Sidebar

Collapse
Ajay Bathija
Ajay Bathija
Last Activity: May 25 '07, 07:42 PM
Joined: Apr 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ajay Bathija
    replied to How to Separate Time from Date
    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...
    See more | Go to post

    Leave a comment:


  • Ajay Bathija
    replied to How to Separate Time from Date
    A. Ade, In the class they are declared as:
    Code:
    Dim mstrScheduleID AS String
    Dim mstrPeronID AS String
    Both of the above variables will always have a numeric value in the string format.
    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....
    See more | Go to post

    Leave a comment:


  • Ajay Bathija
    replied to How to Separate Time from Date
    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
    Table Name = racRoles
    Code:
    RoleID, Autonumber, PK
    RoleName, Text
    While responding to you, I realized...
    See more | Go to post
    Last edited by NeoPa; Apr 18 '07, 12:17 PM. Reason: Format MetaData.

    Leave a comment:


  • Ajay Bathija
    replied to How to Separate Time from Date
    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...
    See more | Go to post

    Leave a comment:


  • Ajay Bathija
    replied to How to Separate Time from Date
    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...
    See more | Go to post

    Leave a comment:


  • Ajay Bathija
    replied to How to Separate Time from Date
    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...
    See more | Go to post

    Leave a comment:


  • Ajay Bathija
    replied to How to Separate Time from Date
    Mary, thanks for the Single quote information.
    I tried the Cdate technique, it inserted the Date (12/30/1899 9:00 AM)...
    See more | Go to post

    Leave a comment:


  • Ajay Bathija
    replied to How to Separate Time from Date
    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,"
    ...
    See more | Go to post

    Leave a comment:


  • Ajay Bathija
    started a topic How to Separate Time from Date

    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...
    See more | Go to post
No activity results to display
Show More
Working...