If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Dumb Newbie

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-04, 12:00
greg85374 greg85374 is offline
Registered User
 
Join Date: May 2004
Posts: 27
Dumb Newbie

Iva attached my database for view to make sure I at least set that up correctly..
Basically I have a VB program with a custom calendar. I need to load my custom calendar with dates from my Database

In order to do that I must tell you..I refer to the valid dates for the given month the user is in through a variable loop starting with "StartPoint" and ending with "StopPoint"

StopPoint being the number of days in a particular month.
What I need to do is have my program look at the database

Then Determine the month the and year the user is working in

Then load the values for the days of that month for the current employee the user is on

I Started to attemp this as follows:
Private Sub LoadValues()

Dim SQLString, SomeDay As String
Dim I As Integer
Dim StartPoint, StopPoint As Integer




'Add Values to textBoxes
For StartPoint = StartPoint To StopPoint Step 1 'loop only though valid textboxes

SomeDay = MyMonth & "/" & StartPoint & "/" & CboYear.Text
SQLString = "SELECT * FROM TblEmpAttendance WHERE Date = '" & SomeDay & "'"
TxtDate(StartPoint).Text = SqlStatement
Next StartPoint

End Sub


Unfortunatley I dont know even where to begin.

I need to load my txtdate(i) textbox array with the values returned in the sql string. Instead it loading them with the sqlstring itsself


I cant even get the sqlstring to get looked at correctly by my program
Thanks in advance-Greg (using vb6 NOt vb.bet!)
Attached Files
File Type: zip Employees.zip (63.3 KB, 24 views)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On