473,395 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Pass Calendar value to all fields on continuous form

12
Hello, everybody!
My continuous form (frmUpdateDates) has a bount field "EffectiveDate".
Unbound combo box calls ocxCalendar, but it only passes value to the one record. How can I pass Calendar value to all records?
Apr 10 '07 #1
3 1705
pks00
280 Expert 100+
If u want to set all the effectivedates u could use recordsetclone to update records
eg

Expand|Select|Wrap|Line Numbers
  1. private sub SetAllDates()
  2.  
  3.     dim rs as dao.recordset
  4.  
  5.     set rs=me.recordsetclone
  6.     do while rs.eof = false
  7.         rs.edit
  8.         rs!EffectiveDate = me.unbounddatefield
  9.         rs.update
  10.         rs.movenext
  11.     loop
  12.     rs.close
  13.     set rs=nothing
  14. end sub
  15.  

add this to your form and call it when u need to set the dates, note u need to change the fieldnames accordingly especially me.unbounddatefield
Apr 10 '07 #2
VictorS
12
Works great! Thanks a lot!

Is there a way to modify this code so it will allow multiply changes?
For example: I select a 1/1/2007 - all fields populated with this date.
But when I select a different date- the code doesn't work until I click somewhere else.

Thank you very much!
Apr 10 '07 #3
pks00
280 Expert 100+
its a function, so u control when u want to call it
just set your code and call it when u need to
Apr 10 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: vinu | last post by:
I have a javascript file named select.js. This is a file which is use to pop up a calendar, when clicked on a calendar icon in an ASP file. have a close button in the calendar. When i click on the...
2
by: PerryC | last post by:
How to pass a MS Calendar Control Calendar Value into a subform within the main form? Private Sub MyCalendar_AfterUpdate() Forms!.. = MyCalendar.Value End Sub This does not seem to work?...
8
by: Shyguy | last post by:
Is it possible to create a calendar that shows previous input data and also allows for input of new data?
4
by: tom | last post by:
Hi Experts, I want to pass the selectedDate value from my calender form to another web form or a web user control. Could you please show me how to do this? Thanks in advance.
5
by: MOC835 | last post by:
I have calendar control that I am trying to use on a continuous subform to select two dates. My MainForm collects user data, and the continuous SubForm collects two dates for that specific...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
1
by: jamesker | last post by:
Hi, I have a continuous form with a date field in it. beside the date field, i've made a command button that when pressed, displays a calendar form which allows users to choose a date, once a...
1
by: swethak | last post by:
Hi, I am desiging the calendar application for that purpose i used the below code. But it is for only displys calendar. And also i want to add the events to calendar. In that code displys the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.