473,387 Members | 1,766 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,387 software developers and data experts.

Problems with Form data entry

Hey

I'm designing a booking system and on my booking form I have an ActiveX Calendar control. The user selects the date on the calendar, which is then transferred into a text box, whose control source is the date field in my booking table.

My problem is that if the user changes his/her mind about the date chosen, choosing another date causes the original date to be updated into the booking table. Is there a way to stop this from happening?

Thanks
Apr 14 '07 #1
4 1780
OK forgive me for being a little slow here.

If you are booking something like a room then the option to change the original booking date and update this original entry to the secondary is vital.

Why do you want to keep a date that could be of no use unless you need that date for a specific reason, which in the case you put forward does not call for this.

Keeping a date that could be a punch error of that the customer feels is redundant is not really beneficial

Why are you keeping this , can you enlighten us please??

Gareth
Apr 14 '07 #2
ADezii
8,834 Expert 8TB
Hey

I'm designing a booking system and on my booking form I have an ActiveX Calendar control. The user selects the date on the calendar, which is then transferred into a text box, whose control source is the date field in my booking table.

My problem is that if the user changes his/her mind about the date chosen, choosing another date causes the original date to be updated into the booking table. Is there a way to stop this from happening?

Thanks
Not unless you want to make the Bookings Table a Child Table of the Main Table (1 to Many) and maintain seperate Records for each Booking. This way, the changed Booking Date would be a seperate entry in the Bookings Table. I really do not see much of a need for this unless you wish to maintain some sort of history for the client.
Apr 14 '07 #3
Sorry, I wasn't too clear.

The text box is there because it forms the criteria for a query which displays all available times for a certain day (to avoid double bookings). I tried to use the Calendar control in the criteria but, as it is ActiveX control, apparently I can't use it. So for the query to work, it is essential (so far as I can see) for the text box to be there.

And I do want to keep a record of all past bookings. The system is actually for booking music lessons and a required feature is that previous bookings (and hence attendance) can be monitored. The problem is that if the user is making a booking, but then changes his/her mind, the bookings table is still updated with the date that they first chose.

I'm kind of new to Access, so forgive me if I'm not being clear ;)

Hope this helps
Apr 14 '07 #4
ADezii
8,834 Expert 8TB
Sorry, I wasn't too clear.

The text box is there because it forms the criteria for a query which displays all available times for a certain day (to avoid double bookings). I tried to use the Calendar control in the criteria but, as it is ActiveX control, apparently I can't use it. So for the query to work, it is essential (so far as I can see) for the text box to be there.

And I do want to keep a record of all past bookings. The system is actually for booking music lessons and a required feature is that previous bookings (and hence attendance) can be monitored. The problem is that if the user is making a booking, but then changes his/her mind, the bookings table is still updated with the date that they first chose.

I'm kind of new to Access, so forgive me if I'm not being clear ;)

Hope this helps
You can use the ActiveX Calendar to specify Date Criteria and here is demo code to show you how:
Expand|Select|Wrap|Line Numbers
  1. Dim strMySQL As String
  2.  
  3. 'Calendar Control is named ActiveXCtl1
  4. strMySQL = "Select * From tblEmployee Where [BirthDate] = #" & _
  5.                     Me![ActiveXCtl1].Value & "#"
  6. Me.RecordSource = strMySQL
Apr 14 '07 #5

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

Similar topics

4
by: Arne | last post by:
From: "Arne de Booij" <a_de_booij@hotmail.com> Subject: Comma delimited array into DB problems Date: 9. februar 2004 10:39 Hi, I have an asp page that takes input from a form on the previous...
1
by: Alex Wisnoski | last post by:
Access 97SR2-I am trying to create a Job Position data entry form based on a table. The form has 15 fields on it. I want to use a combo box to look in the table and see if the position number...
1
by: InDeSkize | last post by:
Hello my programming Super Heroes. I think this one is a no brainer, me being the one with no brain. I have a form that is used for data entry. The goal is to have an unbound form that only...
6
by: Andy | last post by:
Hello, I am having many problems with setting up a parameter query that searches by the criteria entered or returns all records if nothing is entered. I have designed an unbound form with 3...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
18
by: TORQUE | last post by:
Hi, Im wondering if anyone can help me with a problem. I have a form with more than 50 unbound fields. Some of the fields will be blank from time to time. This seems to be where im having...
1
by: Wes Brooks | last post by:
Hello expert, Please help me with the following problems. I have spent ages to resolve them but no luck. I have two forms. (1) "Document Reception Input Form" is the main form. The search...
5
by: Michel Posseth [MCP] | last post by:
Hello we have encountered the following problems with the date time picker control A : datetime picker control gives focus to last entered field when moving back and forward with focus how do...
2
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in...
1
by: BobLewiston | last post by:
I tried to compile a Windows Forms Application in Visual C# 2008 Express with this source code from the CSharpSchool tutorial at Programmer's Heaven:using System; using System.Windows.Forms; using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.