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

Insert value for the whole field

25
I hoping to make things easier for my cilents. Below i have the fields for a table

Table one
Month
Customer
Transaction Amt

I wish to prompt the user for the month in which the records belong to.
Eg. In the Month of September i enter 100 records.

The Month field will automatically fill with "September" so that the user need not type september for a 100 times.

Should i use a INSERT sql? how should i go abt doing it?

Please and Thank you ppl!
Sep 5 '07 #1
3 1255
Scott Price
1,384 Expert 1GB
I hoping to make things easier for my cilents. Below i have the fields for a table

Table one
Month
Customer
Transaction Amt

I wish to prompt the user for the month in which the records belong to.
Eg. In the Month of September i enter 100 records.

The Month field will automatically fill with "September" so that the user need not type september for a 100 times.

Should i use a INSERT sql? how should i go abt doing it?

Please and Thank you ppl!

Try setting the default value of the Month field in your table to this:
Expand|Select|Wrap|Line Numbers
  1. =Format(Date(),"mmmm")
Any new records will automatically have the current month of the current year entered.

Regards,
Scott
Sep 5 '07 #2
hr833
25
Try setting the default value of the Month field in your table to this:
Expand|Select|Wrap|Line Numbers
  1. =Format(Date(),"mmmm")
Any new records will automatically have the current month of the current year entered.

Regards,
Scott
Hey Scott,

The format works perfectly fine. However, the thing is the records are normally entered at the end of the month, some times even entered in the start of following month.Thus i require to prompt the cilent for the month of record belongs to.

Please and Thank you if you can help me..
Sep 6 '07 #3
Scott Price
1,384 Expert 1GB
Oh for *reeeeasonable* clients that do things the *right* way and enter their records on time... :-)

I would suggest then that you populate the Month field by using a combo box with RowSource of either a lookup table (tblMonth, MonthID, MonthName), or a value list that is set to the 12 months of the year. Make the Month field mandatory at the table level, and you're set, since there is no way that they can then save the record without entering a month value. (and BTW, since Month is a keyword, you should likely rename your field to something else to avoid confusing the poor computer down the road somewhere... MonthName, PayMonth, StatementMonth, etc)

Regards,
Scott
Sep 6 '07 #4

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

Similar topics

3
by: jason | last post by:
How does one loop through the contents of a form complicated by dynamic construction of checkboxes which are assigned a 'model' and 'listingID' to the NAME field on the fly in this syntax:...
10
by: shank | last post by:
I have a recordset that contains multiple records of product a user is purchasing. For clarity, I converted the recordset fields to variables. I need to take that entire recordset and insert it...
9
by: Martin | last post by:
Hello, I'm new with triggers and I can not find any good example on how to do the following: I have two tables WO and PM with the following fields: WO.WONUM, VARCHAR(10) WO.PMNUM,...
2
by: Bill | last post by:
I'm having what seems to me to be an odd problem. Perhaps there is some explanation, but don't know at this point. Basically I have a form that tracks memberships and donations. The main form...
8
by: Carl | last post by:
Hi, I hope someone can share some of their professional advice and help me out with my embarissing problem concerning an Access INSERT query. I have never attempted to create a table with...
24
by: deko | last post by:
I'm trying to log error messages and sometimes (no telling when or where) the message contains a string with double quotes. Is there a way get the query to insert the string with the double...
5
by: Louis LeBlanc | last post by:
Hey folks. I'm new to the list, and not quite what you'd call a DB Guru, so please be patient with me. I'm afraid the lead up here is a bit verbose . . . I am working on an application that...
1
by: ivan.nesic | last post by:
I'm working on ADP (access/SQL server) project and I have bounded form to a Sql server database. How can I commit or confirm insert in table of new record when user clicks on confirm button?...
13
by: shookim | last post by:
I don't care how one suggests I do it, but I've been searching for days on how to implement this concept. I'm trying to use some kind of grid control (doesn't have to be a grid control, whatever...
8
by: SaltyBoat | last post by:
Needing to import and parse data from a large PDF file into an Access 2002 table: I start by converted the PDF file to a html file. Then I read this html text file, line by line, into a table...
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
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
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
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...
1
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.