Limiting database result numbers on the same page for two different repeats

I have a home page that has two repeaters on it, drawing data from the same database.

One repeater is filtered for special events and has no limit. The other I want limited to only 3 items.

Is there a way to do this other than the database settings?

thanks kindly
Luke

Hi Luke,

Make a function that gets the data from the database,

Add the an parameter (limit)

when using for the first repeater, use limit 1000 (i think thats the max)
when using for the second repeater, use limit 3

Kind regards,
Kristof.