VB Question
- From: "jjsaw5 via AccessMonster.com" <u34872@uwe>
- Date: Mon, 23 Jul 2007 15:34:34 GMT
I am wondering if it is possible to change the WHERE clause of this statement
to select the current record of a form.
Lets say on a search form a user searchs for a record, i would like them to
be able to press a button and have that record put into another table. I have
generated this code ( which is pretty much and append query) but im wondering
if how i can put this into VB code and how i can change the WHERE clause to
select the current record on a from.
INSERT INTO SRMisc ( [Tracker Item], Description, Comments, Requestor, [SR
Num] )
SELECT Tracker.X5, Tracker.Z1, Tracker.Z2, Tracker.Z3, Tracker.Z6
FROM Tracker
WHERE (((Tracker.Z6)="3918"));
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/200707/1
.
- Follow-Ups:
- Re: VB Question
- From: John W . Vinson
- Re: VB Question
- Prev by Date: Re: search via user input on form
- Next by Date: Re: cascading combo boxes requery problem
- Previous by thread: RE: subform doesn't show all records
- Next by thread: Re: VB Question
- Index(es):