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)!

VDA GoToRecord, or Find?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2878
Discussions: 200,967, Posts: 2,379,661, Members: 246,333
Old March 5th, 2003, 03:52 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Nov 2001
Posts: 177
VBA GoToRecord, or Find?

I'm trying to use a combo box to skip directly to a specific record. Apparently if you have Access build it for you, it'll use recordsets and the Find method. Unfortunately I'm trying to use a combo box on the startup form and go to specific record on another form. So far I've been messing arounf with both DoCmd.GoToRecord and rstVariable.FindFirst, without luck on either one. Anyone have any suggestions? Or is there a completely different way to do this? So far it's looking like a need to use a number to skip to a certain record with DoCmd.GoToRecord, is this correct? so the code would be something like:

DoCmd.GoToRecord acDataForm, "FormName", acGoTo, #

So it's not really going to work for me with the combo box idea right?

And when I tried the recordset approach I wasn't getting any luck, I tried copying the code exactly as Access created it, first using DoCmd to open up the form I was going to, no luck. Any input would be appreciated. Thanks.

Last edited by Turnip12 : March 5th, 2003 at 04:12 PM.
Turnip12 is offline   Reply With Quote
Old March 5th, 2003, 10:02 PM     #2 (permalink)
Member
 
Join Date: Sep 2002
Posts: 364
Yeah, if its on another form, it should be easy. Base the 2nd form off of a query. Make a parameter, where the criteria is equal to the value of your first form. Such as

Forms!FirstForm!ComboBoxValue
Creosote 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? (3022)
Forty-six years ago today (11)
The disrespect of Obama by Russian .. (46)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Internet Lost (5)
windows 7 problem (7)
windows vista security holes (15)
Point and Shoot Camera Suggestions. (6)
Is the PSU I received dead? (13)
radeon x850xt platinum & shader.. (6)
HIS HD5770 graphic card question (15)
Recent Discussions
Delete an OS (8)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
windows vista security holes (15)
Help getting around port 80 for camer.. (4)
Laptop with wireless problem. (12)
Internet Lost (5)
Skillsoft Network+ Study Software Que.. (9)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Nvidia GTX 260 problem (1)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)
upgrade for hp a6101 (0)
tv not turn on-makes clicking sound (2)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)
My monitor won't turn on after instal.. (1)


All times are GMT -4. The time now is 03:57 PM.
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