Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default search 2 criteria then update data

Hi,
I have created a form where we enter the search criterias and it will
update/paste some data into the row. However I have some slight problem when
it came to multiple criterias. This is what I have done so far with just one
criteria

PartSearch is one of the criteria while Admin & AdminRcvDate are the data to
be updated. I need to add in another criteria which is SerialNo.

With Worksheets(1).Range("U:U")
Set c = .Find(PartSearch, LookIn:=xlValues)
If c Is Nothing Then
MsgBox ("No data found!")
Else
firstAddress = c.Address
If c.Offset(0, 5).Value <= 1 / 1 / 2009 Then
c.Offset(0, 9).Value = Admin
c.Offset(0, 5).Value = AdminRcvDate
MsgBox ("Updated successful")
Else
MsgBox ("Item already received previously!")
End If
c.Offset(0, 9).Select
End If
End With

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching data in multiple rows using search criteria bletch23 Excel Worksheet Functions 2 March 4th 10 03:11 AM
Lookup Data based on 2 search criteria JW Excel Worksheet Functions 2 March 10th 09 11:31 PM
How do I retrieve data based on multiple search criteria? ezaz123 Excel Worksheet Functions 1 January 20th 09 05:49 PM
How do I retrieve data based on multiple search criteria? ezaz123 Excel Worksheet Functions 0 January 20th 09 04:56 AM
Search -Add-Update Data to Access Pete T[_2_] Excel Programming 4 October 16th 03 03:32 AM


All times are GMT +1. The time now is 06:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"