M
Martin Williams
Trying to make a search box to examine the records of a dataset. Here's my
code so far:
sub SearchForCustomer()
dim intCount as integer
dim SearchText as string
dim Customer as datatable
dim CurrentRow as datarow
customer = dataset.customer
SearchText = inputbox("Enter the last name of the customer","Search")
for intCount = 0 to customer.rows.count -1
CurrentRow = customer.rows(intcount)
if customer.rows.item("Last Name").tostring = SearchText then
me.bindingcontext(Customer).position = intcount
end if
next
end sub
Appreciate all responses.
Regards,
Martin Williams
code so far:
sub SearchForCustomer()
dim intCount as integer
dim SearchText as string
dim Customer as datatable
dim CurrentRow as datarow
customer = dataset.customer
SearchText = inputbox("Enter the last name of the customer","Search")
for intCount = 0 to customer.rows.count -1
CurrentRow = customer.rows(intcount)
if customer.rows.item("Last Name").tostring = SearchText then
me.bindingcontext(Customer).position = intcount
end if
next
end sub
Appreciate all responses.
Regards,
Martin Williams