home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

MS Access, how do I make one txt box = another

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2274
Discussions: 200,993, Posts: 2,379,919, Members: 246,362
Old June 17th, 2003, 06:05 PM   Digg it!   #1 (permalink)
it's me
 
Bob The Great's Avatar
 
Join Date: Oct 2001
Location: perpetual delerium
Posts: 4,705
MS Access, how do I make one txt box = another

I'm making a program in access and I don't have till 5 to get this program working well. I have pretty much all the basics in place I just need to figure out how to get a text box in a form equal change the text of a report text box when I hit a button. Some vb would work.

[basic idea]



1.Formtxtbox = blank
2.Reporttxtbox = blank
3.(operator inserts text) formtxtbox = name of company
4.operator hits "save" button
5.Reporttxtbox = name of company

Then my prog saves it as an HTML or whatever but I got that worked out.
Bob The Great is offline   Reply With Quote
Old June 17th, 2003, 06:15 PM     #2 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,401
If your report gets its data from a MS Access Query, then modify the query to popup a form asking the user for information

Create a form called "stuff" and a text box on the form called txtField

Then in the criteria for the field you want the information put '=stuff!txtField' so theoretically when you run the form that gets the data from the query, the query will popup the form prompting the user for information.
__________________
Helicopters don't fly; they vibrate so much and make so much noise that the earth rejects them.
vass0922 is online now   Reply With Quote
Old June 17th, 2003, 06:40 PM     #3 (permalink)
it's me
 
Bob The Great's Avatar
 
Join Date: Oct 2001
Location: perpetual delerium
Posts: 4,705
That would bugger up my current program. Is there a simple way to just make the report = the text in the txt fields of my form? Its only 9 fields that need to be copied to the report so it can be published as a .html file. I have that all setup so it publishes it decently. I just need to get this one part done by 5. Then I can rework it to be better after that.
Bob The Great is offline   Reply With Quote
Old June 17th, 2003, 07:34 PM     #4 (permalink)
it's me
 
Bob The Great's Avatar
 
Join Date: Oct 2001
Location: perpetual delerium
Posts: 4,705
could you expain your procedure more if its not possible to do what I'm saying? I'm banging my head against a wall right now, I just don't know how to express what I'm saying to the program.
Bob The Great is offline   Reply With Quote
Old June 17th, 2003, 07:42 PM     #5 (permalink)
Member
 
Join Date: Nov 2001
Posts: 177
So basically you have a form set up for data entry, and you want the text boxes in your report to display the values that were input into the textboxes of the form? If that's the case why not just set the control source of the text boxes? Or am I missing the point entirely?
Turnip12 is offline   Reply With Quote
Old June 17th, 2003, 07:56 PM     #6 (permalink)
it's me
 
Bob The Great's Avatar
 
Join Date: Oct 2001
Location: perpetual delerium
Posts: 4,705
I'm a newb to this so I don't know about a lot of that stuff. Basicly yeah thats what I want to do, but how do I do it?
Bob The Great is offline   Reply With Quote
Old June 17th, 2003, 08:11 PM     #7 (permalink)
Member
 
Join Date: Nov 2001
Posts: 177
I'm fairly new myself, so don't read too far into what I'm saying... But, I'm guessing you have a table for all of your values, and then the form for data input, and then the report to display some info? If that's right, then all you have to do bring up the properties for your form (right click in that grey square in the upper left corner of your form, go to data, then control source and select your table. Then go to your properties for your text box (right click on the text box) and go to data, then control source and then select which value you want the text box to be linked to. So now whatever you type into that text box will be saved as that value in that table, and any other text boxes that are set up with that same value as the control source, will also display that same value. I hope that made sense, and if it did I hope it's what you were looking for.
Turnip12 is offline   Reply With Quote
Old June 17th, 2003, 08:37 PM     #8 (permalink)
it's me
 
Bob The Great's Avatar
 
Join Date: Oct 2001
Location: perpetual delerium
Posts: 4,705
Yeah Turnip, that was exactly it! Now my program can have text inserted into the form text boxes which it then inputs to the tables for storing. Plus I have a button that I can press which takes all the tables and prints them into a pretty nice looking html file so me boss can see them all fairly easily. THANK YOU A TON

I have another question now though (sorry). While I can now do all that, it will only edit one line of the tables. How do I make it so I can, while in the form go one line down. I don't even need the text boxes in the forms cleared necisarrily. I just need to know how to make a button to do that so I can enter more then one set of information.
Bob The Great is offline   Reply With Quote
Old June 17th, 2003, 09:04 PM     #9 (permalink)
it's me
 
Bob The Great's Avatar
 
Join Date: Oct 2001
Location: perpetual delerium
Posts: 4,705
I figured it out myself!! WEEEEEE

Then I suddenly saw some buttons that had appeared at some point (not my doing) that did the same thing only better

But any way I talked to my boss and my export to HTML is out the window, so I guess its good to go except fine tuning and adding messages and errors and easter eggs. Thanks a ton everyone
Bob The Great is offline   Reply With Quote
Old June 18th, 2003, 01:42 AM     #10 (permalink)
Member
 
Join Date: Nov 2001
Posts: 177
Sorry I didn't get back to you, but I'm glad you got it all worked out.
Turnip12 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3085)
Foxconn Blackops x48 MoBo (5)
Charges against non-tippers dropped.. (20)
Health Care Rationing (15)
Delete an OS (17)
Nvidia GTX 260 problem (12)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
windows vista security holes (19)
CPU fan stops spinning randomly (11)
Regular Build (11)
[F@H SPAM 11/16/09] ! 1/2 months to.. (41)
Point and Shoot Camera Suggestions. (8)
windows 7 problem (7)
Recent Discussions
FreeAgent drive software not x64 comp.. (1)
Intel 5100 AGN issues fixed yet? (28)
Nvidia GTX 260 problem (12)
Foxconn Blackops x48 MoBo (5)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (41)
Print spooler problem (17)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Point and Shoot Camera Suggestions. (8)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)


All times are GMT -4. The time now is 10:39 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28