C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
  #1  
Old February 12th, 2002, 01:06 PM
AsP AsP is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Surrey
Posts: 0 AsP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 57 sec
Reputation Power: 0
Unhappy VB enquiry for MS ACCESS

Sorry people if I posted in the wrong place, or even if it doesnt belong on Devshed altogether. But basically i need all the help i can get

Dim varY As Variant
Dim varz As Variant

Dim stringa As String
Dim stringb As String
For y = 1 To 1 Step 1
For x = 1 To 101 Step 1
stringa = ("txt" & y & "time" & x)
stringb = ("lblslot" & x)
varslot2.Value = y
varslot1.Value = Me.Controls(stringb).Tag
VarX = DLookup("bookingid", "booking", "[Time] = varslot1.value AND [Date] = date()")
varslot1.Value = VarX
varz = DLookup("membernumber", "booking", "[bookingid] = varslot1.value")
varslot3.Value = varz
Me.Controls(stringa).Value = DLookup("Surname", "member", "[membernumber] = varslot3.Value")
If IsNull(VarX) = False Then
Me.Controls(stringa).Tag = VarX
End If
varslot1.Value = Me.Controls(stringb).Tag
Me.Controls(stringa).BackColor = 7524210
Me.Controls(stringa).FontBold = 1
If IsNull(VarX) = True Then
Me.Controls(stringa).Value = varslot1.Value
Me.Controls(stringa).BackColor = 16777215
Me.Controls(stringa).FontBold = 0
End If
Next x
Next y

What it does is take values from a bunch of hidden fields called lblslot1, lblslot 2 ...lblslot 101 And the tags of these fields contain the relevant time for a golf club tee time system. So the first slot contains 07:30:00 and the last slot contains 17:30:00 - they go up in 6 minute increments.

THe varslots are also fields that are simply there to store values used in the procedure.

I just wanted to ask if anybody can help me to rewrite this code so that i dont have to use the lblslot for the time, but a procedure that will automatically put the 6 minutes time increments into the txt_time_ (fields which actually display the times).

I would like it so that the procedure put it into the tag of these slots.
Thanks
(Sorry about the long message)

Reply With Quote
  #2  
Old February 12th, 2002, 01:11 PM
jonsagara's Avatar
jonsagara jonsagara is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: USA
Posts: 286 jonsagara User rank is Private First Class (20 - 50 Reputation Level)jonsagara User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 m 23 sec
Reputation Power: 7
Comments on this post
Gran Roguismo agrees!
__________________
Jon Sagara

"Me fail English? That's unpossible!"

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > VB enquiry for MS ACCESS


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway