|
-
Jan 18th, 2007, 02:36 PM
#1
Thread Starter
Lively Member
Filtering Macro question?
If I have column headings named
Wire
Walker Conn #
Base Sensor
Only the first DoCmd works ("wire =wires")
I get an error on the other two.
I have tried different syntax and have not been able to get it to work.
VB Code:
Public Sub SampleSearch()
DoCmd.ShowAllRecords
DoCmd.ApplyFilter , "wire = wires"
DoCmd.ApplyFilter , "Walker Conn # = ConnNum"
DoCmd.ApplyFilter , "Base Sensor = BaseSensor"
End Sub
-
Jan 18th, 2007, 06:19 PM
#2
Re: Filtering Macro question?
DoCmd.ApplyFilter , "Walker Conn # = ConnNum"
DoCmd.ApplyFilter , "Base Sensor = BaseSensor"
I could be wrong but i guess it might be because of the space between the words...
Try changing the column headings to Walker_Conn_# and Base_Sensor...
Hope it helps...
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jan 23rd, 2007, 11:31 AM
#3
Thread Starter
Lively Member
Re: Filtering Macro question?
I tried this and still only the first one works([wires] = wire)?
VB Code:
Public Sub SampleSearch()
DoCmd.ShowAllRecords
DoCmd.ApplyFilter , "[wires] = wire"
DoCmd.ApplyFilter , "[WalkerConnNum] = Connnum"
DoCmd.ApplyFilter , "[BaseSensor] = BaseSensor"
PrgramEnd:
End Sub
I renamed my columns to match
wires
WalkerConnNum
BaseSensor
Morgan
-
Jan 23rd, 2007, 11:33 AM
#4
Thread Starter
Lively Member
Re: Filtering Macro question?
and i cannot find this command listed in help??
DoCmd.ApplyFilter
any ideas??
Morgan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|