ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 22nd, 2004, 10:01 AM
NervousHamster NervousHamster is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 NervousHamster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
a bit of a problem

Hey, hope you can help me with this. I'm running visual basic 6 connected to access 2000. I have two labels on a form which i need to have time and date entered into automatically when the user opens the form. Once the user has entered the other data required they click the submit button to make a new record using this data. The problem i'm having is getting the time and date to be entered into the two labels and then added to the record. This is the code i have so far:

Private Sub CmdSubmit_Click()
strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
App.Path & "\Tables.mdb"

Set cnDB = New ADODB.Connection
cnDB.ConnectionString = strConnection

cnDB.Open

cnDB.Execute ("INSERT INTO Jobs([SchoolName], [Taken by], [Received Time], [Received Date]) VALUES('" & SelectSchoolCombo & "', '" & TakenTxt & "', '" & TimeTakenlbl & "', '" & DateTakenlbl & "');")

cnDB.Close

Any help will be much appreciated

- NervousH

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > a bit of a problem


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap